Add dmg to release for macOS

pull/37/head
James Ball 2021-12-11 00:26:34 +00:00 zatwierdzone przez James H Ball
rodzic 569e050949
commit 3830db3ad3
2 zmienionych plików z 15 dodań i 1 usunięć

Wyświetl plik

@ -81,6 +81,7 @@ jobs:
- name: Build with Maven
run: |
mvn -B package
mvn -B jpackage:jpackage@mac
version=$(mvn help:evaluate -Dexpression="project.version" -q -DforceStdout)
echo "VERSION=$version" >> $GITHUB_ENV
mv target/lib/osci-render-$version.jar target/lib/osci-render-mac-$version.jar
@ -89,7 +90,9 @@ jobs:
uses: softprops/action-gh-release@v1
with:
tag_name: v${{ env.VERSION }}
files: target/lib/osci-render-mac-${{ env.VERSION }}.jar
files: |
target/lib/osci-render-${{ env.VERSION }}.dmg
target/lib/osci-render-mac-${{ env.VERSION }}.jar
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_REPOSITORY: jameshball/osci-render

11
pom.xml
Wyświetl plik

@ -86,6 +86,7 @@
<configuration>
<name>osci-render</name>
<description>Program for making music by drawing objects on an oscilloscope using audio.</description>
<appVersion>${project.version}</appVersion>
<vendor>james.ball.sh</vendor>
<input>${project.build.directory}/lib</input>
@ -109,6 +110,16 @@
<execution>
<id>debian</id>
</execution>
<execution>
<id>mac</id>
<configuration>
<type>dmg</type>
<icon>src/main/resources/icons/icon.icns</icon>
<macPackageName>osci-render</macPackageName>
<macBundleIdentifier>OsciRender-${project.version}</macBundleIdentifier>
<macBundleName>osci-render</macBundleName>
</configuration>
</execution>
</executions>
</plugin>
</plugins>