github.com/ckxng/wakeup@v0.0.0-20190105202853-90356a5f5a15/build.bat (about) 1 set GOPATH=%~dp0 2 3 go install cef 4 @if %ERRORLEVEL% neq 0 goto end 5 6 go install wingui 7 @if %ERRORLEVEL% neq 0 goto end 8 9 IF "%1"=="http_server" ( 10 @if exist "%~dp0Release\cef2go_http_server.exe" ( 11 @del "%~dp0Release\cef2go_http_server.exe" 12 ) 13 go build -o Release/cef2go_http_server.exe src/http_server_windows.go 14 @if %ERRORLEVEL% neq 0 goto end 15 cd Release/ 16 call "cef2go_http_server.exe" 17 cd ../ 18 goto end 19 ) 20 21 @SET ORIGPATH=%PATH% 22 @SET PATH=%PATH%;%~dp0/Release 23 go test src/tests/cef_test.go 24 @if %ERRORLEVEL% neq 0 goto end 25 @SET PATH=%ORIGPATH% 26 @if exist "%~dp0src\tests\debug.log" ( 27 @del "%~dp0src\tests\debug.log" 28 ) 29 30 @if exist "%~dp0Release\cef2go.exe" ( 31 @del "%~dp0Release\cef2go.exe" 32 ) 33 34 IF "%1"=="noconsole" ( 35 go build -ldflags="-H windowsgui" -o Release/cef2go.exe src/main.go 36 @if %ERRORLEVEL% neq 0 goto end 37 ) else ( 38 go build -o Release/cef2go.exe src/main.go 39 @if %ERRORLEVEL% neq 0 goto end 40 ) 41 42 cd Release/ 43 call "cef2go.exe" 44 cd ../ 45 46 :end 47 @echo exit code = %ERRORLEVEL%