-
Notifications
You must be signed in to change notification settings - Fork 4
55 lines (48 loc) · 1.26 KB
/
package.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
name: Package
on:
push:
workflow_dispatch:
jobs:
package:
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Set up Java
uses: actions/setup-java@v4
with:
java-version: 18.0.2
distribution: 'zulu'
java-package: 'jdk+fx'
cache: 'maven'
- name: Build native installer
run: mvn clean install
- name: Upload native installer
uses: actions/upload-artifact@v4
with:
name: J3-${{ runner.os }}
path: |
./target/*.msi
./target/*.dmg
./target/*.deb
- name: Create platform-independent bundle
if: runner.os == 'Linux'
run: |
pushd target
mkdir J3
cp -r lib/ J3
cp -r runtime/ J3
cp -r ../data J3
cp -r ../animations J3
cp ../src/packaging/j3.bat J3
cp ../src/packaging/j3 J3
chmod +x J3/j3
- name: Upload platform-independent bundle
if: runner.os == 'Linux'
uses: actions/upload-artifact@v4
with:
name: J3
path: |
./target/J3