mirror of
https://github.com/Grasscutters/GrassClipper.git
synced 2024-11-22 07:08:11 +00:00
Get nonssl version after build
This commit is contained in:
parent
23e757d1f9
commit
97bd0f239f
@ -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"
|
Loading…
Reference in New Issue
Block a user