forked from Grasscutters/GrassClipper
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build_win.cmd
32 lines (24 loc) · 1.14 KB
/
build_win.cmd
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
29
30
31
32
@echo off
:: This binary is the SSL-secure release
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>nul
rd /s /q .\dist
:: Get the SSL-secure version of the binary
powershell Invoke-WebRequest -Uri %SSL_BINARY_URL% -OutFile "./bin/neutralino-win_x64.exe"
:: build
call neu build
:: Copy scripts and langs
xcopy .\languages\ .\dist\GrassClipper\languages\ /y /s
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
move .\dist\GrassClipper\GrassClipper-win_x64.exe .\dist\GrassClipper\GrassClipper.exe
:: Re-use non-ssl secure version
powershell Invoke-WebRequest -Uri %NON_SSL_BINARY_URL% -OutFile "./bin/neutralino-win_x64.exe"