-
-
Notifications
You must be signed in to change notification settings - Fork 15
265 lines (253 loc) · 8.2 KB
/
launcher.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
253
254
255
256
257
258
259
260
261
262
263
264
265
name: Launcher
on:
workflow_dispatch:
release:
types: [ created ]
permissions:
contents: write
jobs:
jar:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Cache Gradle dependencies
uses: actions/cache@v4
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties', '**/settings.gradle') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: Set up JDK 11
uses: actions/setup-java@v4
with:
java-version: '11'
distribution: 'temurin'
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3
- name: Build launcher
run: ./gradlew launcher:shadowJar
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: jar
path: launcher/build/libs/rsprox-launcher.jar
- name: Upload for release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: launcher/build/libs/rsprox-launcher.jar
windows:
runs-on: windows-2022
needs: jar
steps:
- uses: actions/checkout@v4
with:
submodules: 'true'
- uses: actions/download-artifact@v4
with:
name: jar
- run: choco install innosetup --version 6.3.3
- name: Set up JDK 11
uses: actions/setup-java@v4
with:
java-version: 11
distribution: temurin
- name: clone detours
run: |
cd installer
git clone --depth 1 https://github.com/microsoft/Detours detours
cd detours
git fetch --depth=1 origin 66d6f2d34aba564d373083621cacf66ec51199b2
git checkout 66d6f2d34aba564d373083621cacf66ec51199b2
- name: clone dropt
run: |
cd installer/native
git clone --depth 1 https://github.com/jamesderlin/dropt dropt
cd dropt
git fetch --depth=1 origin cdf507c7a2d5051da88985ff02be8b0b9c6935a8
git checkout cdf507c7a2d5051da88985ff02be8b0b9c6935a8
- name: clone sajson
run: |
cd installer/native
git clone --depth 1 https://github.com/chadaustin/sajson sajson
cd sajson
git fetch --depth=1 origin 791799ad90f7179f132ea2f53b90ef98f1d399a2
git checkout 791799ad90f7179f132ea2f53b90ef98f1d399a2
- uses: ilammy/msvc-dev-cmd@v1 # for nmake
with:
arch: x64
- name: build detours x64
shell: cmd
run: |
cd installer/detours/src
nmake
- uses: ilammy/msvc-dev-cmd@v1 # for nmake
with:
arch: x86
- name: build detours x86
shell: cmd
run: |
cd installer/detours/src
nmake
- uses: ilammy/msvc-dev-cmd@v1 # for nmake
with:
arch: amd64_arm64
- name: build detours aarch64
shell: cmd
run: |
cd installer/detours/src
nmake
- name: x64 installer
shell: bash
run: ./installer/scripts/build-win64.sh
- uses: actions/upload-artifact@v4
with:
name: windows-win64
path: |
installer/innosetup/RSProxSetup.exe
if-no-files-found: error
- name: Upload for release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: installer/innosetup/RSProxSetup.exe
# - name: x86 installer
# shell: bash
# run: ./installer/scripts/build-win32.sh
# - uses: actions/upload-artifact@v4
# with:
# name: windows-win32
# path: |
# installer/innosetup/RSProxSetup32.exe
# if-no-files-found: error
# - name: AArch64 installer
# shell: bash
# run: ./installer/scripts/build-win-aarch64.sh
# - uses: actions/upload-artifact@v4
# with:
# name: windows-aarch64
# path: |
# installer/innosetup/RSProxSetupAArch64.exe
# if-no-files-found: error
linux:
runs-on: ubuntu-20.04
needs: jar
steps:
- run: sudo apt update
- run: sudo apt install -y gcc-9-aarch64-linux-gnu g++-9-aarch64-linux-gnu
- uses: actions/checkout@v4
with:
submodules: 'true'
- uses: actions/download-artifact@v4
with:
name: jar
- name: Set up JDK 11
uses: actions/setup-java@v4
with:
java-version: 11
distribution: temurin
- name: clone dropt
run: |
cd installer/native
git clone --depth 1 https://github.com/jamesderlin/dropt dropt
cd dropt
git fetch --depth=1 origin cdf507c7a2d5051da88985ff02be8b0b9c6935a8
git checkout cdf507c7a2d5051da88985ff02be8b0b9c6935a8
- name: clone sajson
run: |
cd installer/native
git clone --depth 1 https://github.com/chadaustin/sajson sajson
cd sajson
git fetch --depth=1 origin 791799ad90f7179f132ea2f53b90ef98f1d399a2
git checkout 791799ad90f7179f132ea2f53b90ef98f1d399a2
- name: linux-x64
run: ./installer/scripts/build-linux-x86_64.sh
- uses: actions/upload-artifact@v4
with:
name: linux-x86_64
path: |
RSProx.AppImage
if-no-files-found: error
- name: Upload for release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: RSProx.AppImage
# - name: linux-aarch64
# run: ./installer/scripts/build-linux-aarch64.sh
# - uses: actions/upload-artifact@v4
# with:
# name: linux-aarch64
# path: |
# RSProx-aarch64.AppImage
# if-no-files-found: error
# macos:
# runs-on: macos-13
# needs: jar
# steps:
# - uses: actions/setup-python@v5
# with:
# python-version: '3.11'
# - uses: actions/checkout@v4
# with:
# submodules: 'true'
# - uses: actions/download-artifact@v4
# with:
# name: jar
# - name: Set up JDK 17
# uses: actions/setup-java@v4
# with:
# java-version: 17
# distribution: temurin
# - name: clone dropt
# run: |
# cd installer/native
# git clone --depth 1 https://github.com/jamesderlin/dropt dropt
# cd dropt
# git fetch --depth=1 origin cdf507c7a2d5051da88985ff02be8b0b9c6935a8
# git checkout cdf507c7a2d5051da88985ff02be8b0b9c6935a8
# - name: clone sajson
# run: |
# cd installer/native
# git clone --depth 1 https://github.com/chadaustin/sajson sajson
# cd sajson
# git fetch --depth=1 origin 791799ad90f7179f132ea2f53b90ef98f1d399a2
# git checkout 791799ad90f7179f132ea2f53b90ef98f1d399a2
# - name: clone create-dmg
# run: git clone https://github.com/runelite/create-dmg -b runelite-1.0
# - name: build create-dmg
# run: |
# set -e
# cd create-dmg
# npm install
# ln -s cli.js create-dmg
# chmod +x create-dmg
# - run: echo create-dmg >> $GITHUB_PATH
# - name: macos-x64
# run: ./installer/scripts/build-osx-x64.sh --build --dmg
# - uses: actions/upload-artifact@v4
# with:
# name: macos-dmg-x64
# path: |
# RSProx-x64.dmg
# if-no-files-found: error
# - name: macos-aarch64
# run: ./installer/scripts/build-osx-aarch64.sh --build --dmg
# - uses: actions/upload-artifact@v4
# with:
# name: macos-dmg-aarch64
# path: |
# RSProx-aarch64.dmg
# if-no-files-found: error
# # tar app to keep permissions correct
# - name: tar app
# run: tar -cf app.tar installer/build/macos-x64/RSProx.app installer/build/macos-aarch64/RSProx.app installer/scripts/build-osx-x64.sh installer/scripts/build-osx-aarch64.sh installer/osx/signing.entitlements
# - uses: actions/upload-artifact@v4
# with:
# name: macos-app
# path: |
# app.tar
# if-no-files-found: error