From e9e2d44f0f754a7b7d601189d15b999a73860de5 Mon Sep 17 00:00:00 2001 From: Srikavin Ramkumar Date: Fri, 10 Jan 2020 19:50:53 -0500 Subject: [PATCH] Add auto build for mac version --- .github/workflows/blank.yml | 13 ++++++++++--- packr-config.mac.json | 17 +++++++++++++++++ 2 files changed, 27 insertions(+), 3 deletions(-) create mode 100644 packr-config.mac.json diff --git a/.github/workflows/blank.yml b/.github/workflows/blank.yml index 9210d00..e8d5245 100644 --- a/.github/workflows/blank.yml +++ b/.github/workflows/blank.yml @@ -18,18 +18,25 @@ jobs: with: arguments: desktop:dist gradle-version: 5.6.2 - - name: Generate Desktop build + - name: Generate Windows build run: java -jar packr.jar packr-config.win64.json - - name: Archive Release + - name: Generate Mac build + run: java -jar packr.jar packr-config.mac.json + - name: Archive Release (win64) uses: thedoctor0/zip-release@master with: filename: 'win64.zip' path: 'out-win64' + - name: Archive Release (mac) + uses: thedoctor0/zip-release@master + with: + filename: 'mac.zip' + path: 'out-mac' - uses: xresloader/upload-to-github-release@v1 id: upload_release env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: - file: "./desktop/build/libs/desktop-1.0.jar;win64.zip" + file: "./desktop/build/libs/desktop-1.0.jar;win64.zip;mac.zip" prerelease: true draft: false diff --git a/packr-config.mac.json b/packr-config.mac.json new file mode 100644 index 0000000..956c228 --- /dev/null +++ b/packr-config.mac.json @@ -0,0 +1,17 @@ +{ + "platform": "mac", + "jdk": "https://github.com/ojdkbuild/ojdkbuild/releases/download/java-1.8.0-openjdk-1.8.0.232-2.b09/java-1.8.0-openjdk-1.8.0.232-2.b09.ojdkbuild.windows.x86_64.zip", + "executable": "quest", + "classpath": [ + "desktop/build/libs/desktop-1.0.jar" + ], + "removelibs": [ + "desktop/build/libs/desktop-1.0.jar" + ], + "mainclass": "me.srikavin.fbla.game.desktop.DesktopLauncher", + "vmargs": [ + "Xmx1G" + ], + "minimizejre": "hard", + "output": "out-mac" +} \ No newline at end of file