-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
15 changed files
with
149 additions
and
140 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,96 +2,33 @@ name: Package | |
|
||
on: | ||
push: | ||
branches: [ master ] | ||
workflow_dispatch: | ||
|
||
jobs: | ||
java: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- uses: actions/setup-java@v4 | ||
with: | ||
distribution: 'zulu' | ||
java-version: '17' | ||
|
||
- name: Maven Package | ||
run: mvn -Pdesktop package | ||
|
||
- name: Create distribution | ||
run: | | ||
mkdir staging | ||
mkdir staging/J3 | ||
cp -r target/lib/ staging/J3/lib | ||
cp target/j3-*.jar staging/J3/lib | ||
cp -r data/ staging/J3/data | ||
cp -r animations staging/J3/animations | ||
cp package/* staging/J3 | ||
- name: Upload | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: J3 | ||
path: staging | ||
|
||
native: | ||
package: | ||
strategy: | ||
matrix: | ||
include: | ||
- name: Windows | ||
os: windows-latest | ||
profile: desktop | ||
path: x86_64-windows | ||
exe: j3.exe | ||
- name: Linux | ||
os: ubuntu-latest | ||
profile: desktop | ||
path: x86_64-linux | ||
exe: j3 | ||
os: [ubuntu-latest, windows-latest] | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Add msbuild to PATH (Windows) | ||
if: runner.os == 'Windows' | ||
uses: microsoft/[email protected] | ||
|
||
- name: Visual Studio shell (Windows) | ||
if: runner.os == 'Windows' | ||
uses: egor-tensin/vs-shell@v2 | ||
|
||
- name: Install dependencies (Linux) | ||
if: runner.os == 'Linux' | ||
run: | | ||
sudo apt update | ||
sudo apt install libasound2-dev libavcodec-dev libavformat-dev libavutil-dev libgl-dev libgtk-3-dev libpango1.0-dev libxtst-dev | ||
- name: Setup Gluon's GraalVM | ||
uses: gluonhq/setup-graalvm@master | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
#- name: Gluon License | ||
# uses: gluonhq/gluon-build-license@v1 | ||
# with: | ||
# gluon-license: ${{ secrets.GLUON_LICENSE }} | ||
|
||
- name: Maven Package | ||
run: mvn -P${{ matrix.profile }} package | ||
- name: Set up JDK 17 | ||
uses: actions/setup-java@v2 | ||
with: | ||
java-version: 18.0.2 | ||
distribution: 'zulu' | ||
java-package: 'jdk+fx' | ||
cache: 'maven' | ||
|
||
- name: Gluon Build and Package | ||
run: mvn -P${{ matrix.profile }} gluonfx:build gluonfx:package | ||
|
||
- name: Create distribution | ||
run: | | ||
mkdir staging | ||
mkdir staging/J3 | ||
cp target/gluonfx/${{ matrix.path }}/${{ matrix.exe }} staging/J3 | ||
cp -r data/ staging/J3/data | ||
cp -r animations staging/J3/animations | ||
- name: Maven build | ||
run: mvn clean install | ||
|
||
- name: Upload | ||
- name: Upload release | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: J3-${{ matrix.name }} | ||
path: staging | ||
name: J3-${{ runner.os }} | ||
path: | | ||
./target/*.msi | ||
./target/*.dmg | ||
./target/*.deb |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--name ${app.name} | ||
--icon "${project.basedir}/appicon.png" | ||
--dest "${project.build.directory}" | ||
--main-jar ${project.build.finalName}.jar | ||
--main-class ${main-class} | ||
--input "${project.build.directory}/lib" | ||
--app-version ${app.version} | ||
--runtime-image "${project.build.directory}/jvm-image" | ||
--temp "${project.build.directory}/installer-work" | ||
--app-content "${project.basedir}/data" | ||
--app-content "${project.basedir}/animations" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
--name ${app.name} | ||
--icon "${project.basedir}/appicon.icns" | ||
--dest "${project.build.directory}" | ||
--main-jar ${project.build.finalName}.jar | ||
--main-class ${main-class} | ||
--input "${project.build.directory}/lib" | ||
--app-version ${app.version} | ||
--runtime-image "${project.build.directory}/jvm-image" | ||
--temp "${project.build.directory}/installer-work" | ||
--app-content "${project.basedir}/data" | ||
--app-content "${project.basedir}/animations" | ||
${macos.sign} | ||
${macos.sign.identity} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
--type msi | ||
--name ${app.name} | ||
--win-menu | ||
--win-menu-group ${windows.vendor} | ||
--vendor ${windows.vendor} | ||
--icon "${project.basedir}/src/packaging/appicon.ico" | ||
--dest "${project.build.directory}" | ||
--main-jar ${project.build.finalName}.jar | ||
--main-class ${main.class} | ||
--input "${project.build.directory}/lib" | ||
--app-version ${app.version} | ||
--runtime-image "${project.build.directory}/jvm-image" | ||
--temp "${project.build.directory}/installer-work" | ||
--win-upgrade-uuid ${windows.upgrade.uuid} | ||
--description "${project.description}" | ||
--copyright "Copyright ${windows.vendor}" | ||
--app-content "${project.basedir}/data" | ||
--app-content "${project.basedir}/animations" |