-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuildNative.bat
More file actions
33 lines (28 loc) · 899 Bytes
/
buildNative.bat
File metadata and controls
33 lines (28 loc) · 899 Bytes
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
@echo off
SETLOCAL
REM Clean and build the Maven project
echo Building project with Maven...
mvn clean package
REM Remove existing DevKitInstaller folder if it exists
IF EXIST DevKitInstaller (
echo Removing old DevKitInstaller directory...
rmdir /s /q DevKitInstaller
)
REM Package the application using jpackage
echo Packaging with jpackage...
jpackage --name DevKitInstaller ^
--input target ^
--main-jar DevKit_new-1.0-SNAPSHOT-jar-with-dependencies.jar ^
--main-class com.devkit.DevKitInstaller ^
--type app-image ^
--app-version 1.0.0
REM --icon icon.ico
REM --runtime-image custom-jre
REM --license-file LICENSE.txt
REM --dest output
REM Copy config folder into the output
echo Copying config folder...
xcopy /E /I /Y installer-resources\config DevKitInstaller\bin\config
echo Done!
ENDLOCAL
pause