Build self-contained Windows JAR release
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
@echo off
|
||||
chcp 65001 >nul
|
||||
setlocal
|
||||
cd /d "%~dp0"
|
||||
|
||||
set "JAVA_BIN=%~dp0runtime\bin\java.exe"
|
||||
set "APP_JAR=%~dp0@APP_JAR@"
|
||||
|
||||
if not exist "%JAVA_BIN%" (
|
||||
echo [ERROR] Bundled Java runtime is missing: %JAVA_BIN%
|
||||
pause
|
||||
exit /b 1
|
||||
)
|
||||
if not exist "%APP_JAR%" (
|
||||
echo [ERROR] WorkUtils JAR is missing: %APP_JAR%
|
||||
pause
|
||||
exit /b 1
|
||||
)
|
||||
|
||||
"%JAVA_BIN%" -Dfile.encoding=UTF-8 "-Dworkutils.home=%~dp0" -jar "%APP_JAR%" %*
|
||||
if errorlevel 1 pause
|
||||
Reference in New Issue
Block a user