Get nonssl version after build

This commit is contained in:
SpikeHD 2022-04-26 20:56:41 -07:00
parent 23e757d1f9
commit 97bd0f239f

View File

@ -1,14 +1,15 @@
@echo off
:: This binary is the SSL-secure release
set BINARY_URL="https://github.com/SpikeHD/neutralinojs/releases/download/v420.69.0/neutralino-win_x64.exe"
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"
:: Clean dist folder
del /s /q /f .\dist
rd /s /q .\dist
:: Get the SSL-secure version of the binary
powershell Invoke-WebRequest -Uri %BINARY_URL% -OutFile "./bin/neutralino-win_x64.exe"
powershell Invoke-WebRequest -Uri %SSL_BINARY_URL% -OutFile "./bin/neutralino-win_x64.exe"
:: build
call neu build
@ -25,4 +26,7 @@ xcopy .\resources\bg\private\ .\dist\GrassClipper\resources\bg\private\ /y /s
xcopy .\resources\bg\server\ .\dist\GrassClipper\resources\bg\server\ /y /s
:: rename exe
move .\dist\GrassClipper\GrassClipper-win_x64.exe .\dist\GrassClipper\GrassClipper.exe
move .\dist\GrassClipper\GrassClipper-win_x64.exe .\dist\GrassClipper\GrassClipper.exe
:: Re-use non-ssl secure version
powershell Invoke-WebRequest -Uri %SSL_BINARY_URL% -OutFile "./bin/neutralino-win_x64.exe"