You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

43 lines
907 B

@echo off
setlocal
rmdir /s /q out
rmdir /s /q dist
mkdir out
mkdir out\A8K_RUN_ON_PC
mkdir out\A8K_RUN_ON_PC\appresource
mkdir dist
mkdir dest\A8K_RUN_ON_PC\appresource\
copy target\a8000-1.jar out\A8K_RUN_ON_PC\
if %errorlevel% neq 0 (
echo 执行发生错误,退出脚本
exit /b %errorlevel%
)
"C:\Program Files\Java\jdk-21\bin\jpackage.exe" ^
--type app-image ^
--name A8K_RUN_ON_PC ^
--input out\A8K_RUN_ON_PC ^
--main-jar a8000-1.jar ^
--win-console ^
--dest dist
mkdir dist\A8K_RUN_ON_PC\appresource\
xcopy appresource dist\A8K_RUN_ON_PC\appresource\ /s /e
start explorer dist\
if %errorlevel% neq 0 (
echo 执行发生错误,退出脚本
exit /b %errorlevel%
)
@REM .\tools\makesfx.exe -ic -mf -ft -we -di -un -oo .\dist\A8K_RUN_ON_PC\ .\dist\A8K_RUN_ON_PC.exe .\logo.ico .\dist\A8K_RUN_ON_PC\A8K_RUN_ON_PC.exe
:: 结束脚本
endlocal
pause