-
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.
Merge pull request #211 from yermak/feature/151_linux_distr
feature/151_linux_distr
- Loading branch information
Showing
30 changed files
with
1,201 additions
and
55 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,31 @@ | ||
JAVA_HOME=$1 | ||
JAVAFX_JMODS=$2 | ||
APP_VERSION=$3 | ||
|
||
rm -rf target/release | ||
mkdir 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
File renamed without changes.
File renamed without changes.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Large diffs are not rendered by default.
Oops, something went wrong.
Oops, something went wrong.