-
Notifications
You must be signed in to change notification settings - Fork 4
252 lines (230 loc) · 8.56 KB
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
name: CI
on: [push, pull_request]
jobs:
rb1_xbox:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.9
uses: actions/setup-python@v4
with:
python-version: '3.9'
- name: Set env
run: |
echo "GITHUB_SHA_SHORT=$(echo $GITHUB_SHA | cut -c 1-7)" >> $GITHUB_ENV
echo "::set-output name=sha_short::$(git rev-parse --short HEAD)"
chmod +x rb1/dependencies/linux/arkhelper
chmod +x rb1/dependencies/linux/dtab
chmod +x rb1/dependencies/linux/superfreq
pip install gitpython
pip install mido
- name: Remove PS3 files
run: |
find . -name "*.*_ps3" -type f -delete
- name: Build ARK
run: |
rb1/dependencies/linux/arkhelper dir2ark rb1/_ark rb1/_build/xbox/gen -n "patch_xbox" -e -v 4 -f
- name: Upload result
uses: actions/upload-artifact@v2
with:
name: RB1-Patch-Xbox
path: rb1/_build/xbox
rb1_ps3:
runs-on: windows-2019
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.9
uses: actions/setup-python@v4
with:
python-version: '3.9'
- name: Set env
run: |
pip install gitpython
pip install mido
pip install requests
- name: fetch TrueAncestor PKG Repacker
run: |
python rb1/dependencies/dev_scripts/download_ta_pkg_repacker.py
- name: Remove Xbox files
run: |
Get-ChildItem rb1/_ark/ -recurse -include *.*_xbox | remove-item
- name: Build ARK
run: |
rb1/dependencies/windows/arkhelper.exe dir2ark rb1/_ark rb1/_build/ps3/USRDIR/gen -n "patch_ps3" -e -v 4 -f
- name: Build PKG
run: |
$sha_short="$(git rev-parse --short HEAD)".ToUpper()
$content="UP1018-BLUS30050_00-RB1PATCHH"
$packageversion="1.07"
rb1/dependencies/ta_pkg_repacker_tools/make_package_npdrm_retail.exe --k-licensee 0x00000000000000000000000000000000 --drm-type Local --package-version $packageversion --content-type GameData --content-id ($content + $sha_short) rb1/dependencies/ta_pkg_repacker_tools/package.conf rb1/_build/ps3
- name: Upload result
uses: actions/upload-artifact@v3
with:
name: RB1-Patch-PS3
path: '*.pkg'
lrb_xbox:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.9
uses: actions/setup-python@v4
with:
python-version: '3.9'
- name: Download Mackiloha
run: |
pip install requests
python lrb/dependencies/dev_scripts/download_mackiloha.py
- name: Set env
run: |
echo "GITHUB_SHA_SHORT=$(echo $GITHUB_SHA | cut -c 1-7)" >> $GITHUB_ENV
echo "::set-output name=sha_short::$(git rev-parse --short HEAD)"
chmod +x lrb/dependencies/linux/arkhelper
chmod +x lrb/dependencies/linux/dtab
chmod +x lrb/dependencies/linux/superfreq
pip install gitpython
pip install mido
- name: Remove PS3 files
run: |
find . -name "*.*_ps3" -type f -delete
- name: Build ARK
run: |
lrb/dependencies/linux/arkhelper dir2ark lrb/_ark lrb/_build/xbox/gen -n "patch_xbox" -e -v 5
- name: Upload result
uses: actions/upload-artifact@v2
with:
name: LRB-Patch-Xbox
path: lrb/_build/xbox
lrb_ps3:
runs-on: windows-2019
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.9
uses: actions/setup-python@v4
with:
python-version: '3.9'
- name: Download Mackiloha
run: |
pip install requests
python lrb/dependencies/dev_scripts/download_mackiloha.py
- name: Set env
run: |
pip install gitpython
pip install mido
pip install requests
- name: fetch TrueAncestor PKG Repacker
run: |
python lrb/dependencies/dev_scripts/download_ta_pkg_repacker.py
- name: Remove Xbox files
run: |
Get-ChildItem lrb/_ark/ -recurse -include *.*_xbox | remove-item
- name: Build ARK
run: |
lrb/dependencies/windows/arkhelper.exe dir2ark lrb/_ark lrb/_build/ps3/USRDIR/gen -n "patch_ps3" -e -v 5
- name: Build PKG
run: |
$sha_short="$(git rev-parse --short HEAD)".ToUpper()
$content="UP1018-BLUS30382_00-LRBPATCHH"
$packageversion="1.01"
lrb/dependencies/ta_pkg_repacker_tools/make_package_npdrm_retail.exe --k-licensee 0x00000000000000000000000000000000 --drm-type Local --package-version $packageversion --content-type GameData --content-id ($content + $sha_short) lrb/dependencies/ta_pkg_repacker_tools/package.conf lrb/_build/ps3
- name: Upload result
uses: actions/upload-artifact@v3
with:
name: LRB-Patch-PS3
path: '*.pkg'
tbrb_xbox:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.9
uses: actions/setup-python@v4
with:
python-version: '3.9'
- name: Download Mackiloha
run: |
pip install requests
python tbrb/dependencies/dev_scripts/download_mackiloha.py
- name: Set env
run: |
echo "GITHUB_SHA_SHORT=$(echo $GITHUB_SHA | cut -c 1-7)" >> $GITHUB_ENV
echo "::set-output name=sha_short::$(git rev-parse --short HEAD)"
chmod +x tbrb/dependencies/linux/arkhelper
chmod +x tbrb/dependencies/linux/dtab
chmod +x tbrb/dependencies/linux/superfreq
pip install gitpython
pip install mido
- name: Remove PS3 files
run: |
find . -name "*.*_ps3" -type f -delete
- name: Build ARK
run: |
tbrb/dependencies/linux/arkhelper dir2ark tbrb/_ark tbrb/_build/xbox/gen -n "patch_xbox" -e -v 5
- name: Upload result
uses: actions/upload-artifact@v2
with:
name: TBRB-Patch-Xbox
path: tbrb/_build/xbox
tbrb_ps3:
runs-on: windows-2019
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.9
uses: actions/setup-python@v4
with:
python-version: '3.9'
- name: Set env
run: |
pip install gitpython
pip install mido
pip install requests
- name: fetch TrueAncestor PKG Repacker
run: |
python tbrb/dependencies/dev_scripts/download_ta_pkg_repacker.py
- name: Remove Xbox files
run: |
Get-ChildItem tbrb/_ark/ -recurse -include *.*_xbox | remove-item
- name: Build ARK
run: |
tbrb/dependencies/windows/arkhelper.exe dir2ark tbrb/_ark tbrb/_build/ps3/USRDIR/gen -n "patch_ps3" -e -v 4 -f
- name: Build PKG
run: |
$sha_short="$(git rev-parse --short HEAD)".ToUpper()
$content="UP0006-BLUS30282_00-TBRBPATCH"
$packageversion="1.00"
tbrb/dependencies/ta_pkg_repacker_tools/make_package_npdrm_retail.exe --k-licensee 0x00000000000000000000000000000000 --drm-type Local --package-version $packageversion --content-type GameData --content-id ($content + $sha_short) tbrb/dependencies/ta_pkg_repacker_tools/package.conf tbrb/_build/ps3
- name: Upload result
uses: actions/upload-artifact@v3
with:
name: TBRB-Patch-PS3
path: '*.pkg'
gdrb_xbox:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.9
uses: actions/setup-python@v4
with:
python-version: '3.9'
- name: Download Mackiloha
run: |
pip install requests
python gdrb/dependencies/dev_scripts/download_mackiloha.py
- name: Set env
run: |
echo "GITHUB_SHA_SHORT=$(echo $GITHUB_SHA | cut -c 1-7)" >> $GITHUB_ENV
echo "::set-output name=sha_short::$(git rev-parse --short HEAD)"
chmod +x gdrb/dependencies/linux/arkhelper
chmod +x gdrb/dependencies/linux/dtab
chmod +x gdrb/dependencies/linux/superfreq
pip install gitpython
pip install mido
- name: Remove PS3 files
run: |
find . -name "*.*_ps3" -type f -delete
- name: Build ARK
run: |
gdrb/dependencies/linux/arkhelper dir2ark gdrb/_ark gdrb/_build/xbox/gen -n "patch_xbox" -e -v 5
- name: Upload result
uses: actions/upload-artifact@v2
with:
name: GDRB-Patch-Xbox
path: gdrb/_build/xbox