-
Notifications
You must be signed in to change notification settings - Fork 39
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
2 changed files
with
33 additions
and
11 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 |
---|---|---|
@@ -1,9 +1,31 @@ | ||
$JAVA_HOME/bin/jlink --module-path $JAVA_HOME/jmods:$JAVAFX_JMODS \ | ||
--add-modules java.base,java.sql,javafx.controls,javafx.fxml,javafx.media,javafx.base,javafx.swing,javafx.graphics --output target/fx-jre | ||
JAVA_HOME=$1 | ||
JAVAFX_JMODS=$2 | ||
APP_VERSION=$3 | ||
|
||
$JAVA_HOME/bin/jpackage --app-version $(APP_VERSION) --license-file LICENSE --icon AudioBookConverter.icns \ | ||
--type dmg \ | ||
--input target/package/audiobookconverter-$(APP_VERSION)-mac-installer/audiobookconverter-$(APP_VERSION)/app \ | ||
--main-jar lib/audiobookconverter-$(APP_VERSION).jar --runtime-image target/fx-jre --java-options '--enable-preview' | ||
rm -rf target/release | ||
mkdir target/release | ||
mv -f *.dmg target/release | ||
|
||
rm -rf target/fx-jre | ||
$JAVA_HOME/bin/jlink --module-path $JAVA_HOME/jmods:$JAVAFX_JMODS \ | ||
--add-modules java.base,java.sql,javafx.controls,javafx.fxml,javafx.media,javafx.base,javafx.swing,javafx.graphics \ | ||
--strip-native-commands --strip-debug --no-man-pages --no-header-files --exclude-files=**.md \ | ||
--output target/fx-jre | ||
|
||
rm -rf target/image | ||
$JAVA_HOME/bin/jpackage --app-version $APP_VERSION -t app-image --icon AudioBookConverter.png --name AudioBookConverter --vendor Recoupler \ | ||
--input target/package/audiobookconverter-$APP_VERSION-linux-installer/audiobookconverter-$APP_VERSION/app \ | ||
--main-jar lib/audiobookconverter-$APP_VERSION.jar --runtime-image target/fx-jre \ | ||
--dest target/image --java-options '--enable-preview' | ||
strip target/image/AudioBookConverter/bin/AudioBookConverter | ||
|
||
cd target/image | ||
tar -czf ../release/AudioBookConverter-static-binaries-$APP_VERSION.tar.gz AudioBookConverter | ||
cd ../.. | ||
|
||
$JAVA_HOME/bin/jpackage --app-version $APP_VERSION --license-file LICENSE --icon AudioBookConverter.png \ | ||
-t deb --name AudioBookConverter --vendor Recoupler \ | ||
--linux-menu-group AudioBookConverter --linux-shortcut \ | ||
--input target/package/audiobookconverter-$APP_VERSION-linux-nodeps-installer/audiobookconverter-$APP_VERSION/app \ | ||
--main-jar lib/audiobookconverter-$APP_VERSION.jar --runtime-image target/fx-jre --java-options '--enable-preview' | ||
|
||
mv audiobookconverter_$APP_VERSION-1_amd64.deb target/release/ |
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