Skip to content

Commit

Permalink
Add auto build for mac version
Browse files Browse the repository at this point in the history
  • Loading branch information
srikavin committed Jan 11, 2020
1 parent 9abd21f commit e9e2d44
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 3 deletions.
13 changes: 10 additions & 3 deletions .github/workflows/blank.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
17 changes: 17 additions & 0 deletions packr-config.mac.json
Original file line number Diff line number Diff line change
@@ -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"
}

0 comments on commit e9e2d44

Please sign in to comment.