-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathcompile_broken.bat
28 lines (19 loc) · 1.54 KB
/
compile_broken.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
REM DOWNLOAD PREBUILT NEXE NODE BINS for your version FROM https://github.com/nexe/nexe/releases/
cd "%~dp0"
set /p FULLVERSION=<"%~dp0webinterface/version.txt"
set MAJOR=%FULLVERSION:~0,1%
set MINOR=%FULLVERSION:~2,1%
set SECMINOR=%FULLVERSION:~4,1%
set BUILDNUM=%FULLVERSION:~6,10%
set /a NEWVERSION=%BUILDNUM%+1
echo %MAJOR%.%MINOR%.%SECMINOR%.%NEWVERSION% > "%~dp0/webinterface/version.txt"
cmd /C "ncc build server.js -o dist"
REM WORKS cmd /C "nexe /dist/index.js -t windows-x64-18.14.0 -r ./webinterface/** -r ./rest_service/** -r ./rest_service/app.js" --remote https://github.com/urbdyn/nexe_builds/releases/download/0.3.0/
cmd /C "nexe /dist/index.js -t windows-x64-20.18.0 -r ./webinterface/** -r "./rest_service/**" -r "./rest_service/app.js" --verbose --ico "%~dp0build_tools/webint_icon.ico""
cmd /C "%~dp0build_tools/verpatch.exe server.exe "%MAJOR%.%MINOR%.%SECMINOR%.%NEWVERSION%" /s product "FFAStrans Webinterface" /s desc "FFAStrans Webinterface" /s copyright "[email protected]" "
cmd /C ""%~dp0build_tools/ResourceHacker.exe" -open "server.exe" -save "server.exe" -action addoverwrite -resource "%~dp0build_tools\webint_icon.ico" -mask ICONGROUP,MAINICON"
ie4uinit.exe -ClearIconCache
REM cmd /C "nexe test.js -t windows-x64-18.14.0 --remote https://github.com/urbdyn/nexe_builds/releases/download/0.3.0/
REM nexe .\server.js -t windows -r "./webinterface/**" -r "./rest_service/**" -r "./rest_service/app.js" --verbose
REM nexe .\server.js -t windows-x64-14.15.3 -r "./webinterface/**" -r "./rest_service/bundle.js" --verbose
pause