2022-04-25 23:24:32 +00:00
|
|
|
@echo off
|
|
|
|
|
2022-04-27 03:50:32 +00:00
|
|
|
:: This binary is the SSL-secure release
|
2022-04-27 03:56:41 +00:00
|
|
|
set SSL_BINARY_URL="https://github.com/SpikeHD/neutralinojs/releases/download/v420.69.0/neutralino-win_x64.exe"
|
|
|
|
set NON_SSL_BINARY_URL="https://github.com/SpikeHD/neutralinojs/releases/download/v1337.0.0/neutralino-win_x64.exe"
|
2022-04-27 03:50:32 +00:00
|
|
|
|
2022-04-25 23:24:32 +00:00
|
|
|
:: Clean dist folder
|
2022-05-03 08:09:22 +00:00
|
|
|
del /s /q /f .\dist>nul
|
2022-04-25 23:24:32 +00:00
|
|
|
rd /s /q .\dist
|
|
|
|
|
2022-04-27 03:50:32 +00:00
|
|
|
:: Get the SSL-secure version of the binary
|
2022-04-27 03:56:41 +00:00
|
|
|
powershell Invoke-WebRequest -Uri %SSL_BINARY_URL% -OutFile "./bin/neutralino-win_x64.exe"
|
2022-04-27 03:50:32 +00:00
|
|
|
|
2022-04-25 23:24:32 +00:00
|
|
|
:: build
|
|
|
|
call neu build
|
|
|
|
|
|
|
|
:: Copy scripts and langs
|
2022-04-25 23:32:19 +00:00
|
|
|
xcopy .\languages\ .\dist\GrassClipper\languages\ /y /s
|
2022-04-25 23:24:32 +00:00
|
|
|
xcopy .\proxy\ .\dist\GrassClipper\proxy\ /y /s
|
|
|
|
xcopy .\scripts\ .\dist\GrassClipper\scripts\ /y /s
|
|
|
|
|
|
|
|
:: bgs
|
|
|
|
mkdir .\dist\GrassClipper\resources\bg\private
|
|
|
|
mkdir .\dist\GrassClipper\resources\bg\server
|
|
|
|
xcopy .\resources\bg\private\ .\dist\GrassClipper\resources\bg\private\ /y /s
|
|
|
|
xcopy .\resources\bg\server\ .\dist\GrassClipper\resources\bg\server\ /y /s
|
|
|
|
|
|
|
|
:: rename exe
|
2022-04-27 03:56:41 +00:00
|
|
|
move .\dist\GrassClipper\GrassClipper-win_x64.exe .\dist\GrassClipper\GrassClipper.exe
|
|
|
|
|
|
|
|
:: Re-use non-ssl secure version
|
2022-04-30 05:30:14 +00:00
|
|
|
powershell Invoke-WebRequest -Uri %NON_SSL_BINARY_URL% -OutFile "./bin/neutralino-win_x64.exe"
|