Skip to content

Commit

Permalink
macos distr
Browse files Browse the repository at this point in the history
  • Loading branch information
viktor44 committed Mar 26, 2024
1 parent 0bc6c95 commit 37e27cc
Show file tree
Hide file tree
Showing 5 changed files with 37 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,25 @@ on:

jobs:

MacOs:
runs-on: macos-13
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'temurin'
architecture: x64
- run: |
./mvnw clean package --batch-mode --no-transfer-progress
- run: |
$JAVA_HOME/bin/jpackage @target/jpackage-macos.args --type dmg
shell: cmd
- uses: softprops/action-gh-release@v2
with:
draft: true
files: target/distr/win/*.dmg

Windows:
runs-on: windows-2019
steps:
Expand Down
9 changes: 9 additions & 0 deletions etc/build-macos.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
JAVA_HOME=$JAVA17_HOME

cd "$(dirname "$0")/.."

mvn clean package -DskipTests

$JAVA_HOME/bin/jpackage @target/jpackage-macos.args --type app-image

$JAVA_HOME/bin/jpackage @target/jpackage-macos.args --type dmg
Binary file added etc/distr/app.icns
Binary file not shown.
1 change: 1 addition & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@
<directory>${basedir}/src/assembly</directory>
<filtering>true</filtering>
<includes>
<include>jpackage-macos.args</include>
<include>jpackage-win.args</include>
</includes>
</resource>
Expand Down
8 changes: 8 additions & 0 deletions src/assembly/jpackage-macos.args
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
--icon etc/distr/app.icns
--input target/out/lib
--dest target/distr/macos
--name ZooInspectorN
--vendor Viktor44
--app-version ${parsedVersion.majorVersion}.${parsedVersion.minorVersion}
--main-jar ${project.build.finalName}.jar

0 comments on commit 37e27cc

Please sign in to comment.