-
Notifications
You must be signed in to change notification settings - Fork 1
/
win-package.bat
37 lines (34 loc) · 1.18 KB
/
win-package.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
@ECHO OFF
set VERSION=1.1.0
set INSTALL_DIR=target/win-installer
set MAIN_CLASS=net.raumzeitfalle.fx.derivecolors.App
set MOD_PATH=target\modulepath
for /F %%i in ('"%JAVA_HOME%\bin\jdeps" --module-path %MOD_PATH% --print-module-deps --ignore-missing-deps target/derive-colors-%VERSION%.jar') do SET JDEPS_MODULES=%%i
"%JAVA_HOME%\bin\jlink" --module-path %MOD_PATH% ^
--add-modules %JDEPS_MODULES% ^
--output target/runtime ^
--strip-debug ^
--compress 2 ^
--no-header-files ^
--no-man-pages
copy target\derive-colors-%VERSION%.jar target\modulepath
"%JAVA_HOME%\bin\jpackage" ^
--app-version %VERSION% ^
--input target\modulepath ^
--main-jar derive-colors-%VERSION%.jar ^
--main-class %MAIN_CLASS% ^
--name DeriveColorsFX ^
--description "Creates a color palette using JavaFX Color::deriveColor function." ^
--vendor "Raumzeitfalle.de" ^
--verbose ^
--runtime-image target/runtime ^
--dest %INSTALL_DIR% ^
--type msi ^
--java-options "--add-opens=javafx.fxml/javafx.fxml=ALL-UNNAMED" ^
--java-options "-Djava.library.path=runtime\bin;runtime\lib" ^
--win-dir-chooser ^
--win-menu ^
--win-per-user-install ^
--win-menu-group "DeriveColorsFX" ^
--win-shortcut ^
--icon packaging/windows/DeriveColors.ico