2d7f302768
Tests should be a lot less noisy now. Fixed a bug where BulkGetMap didn't return any users if you opted out of using a memory cache for the user store. Used new() in a few more places. Fixed a test which didn't work properly. Tweaked the panel_pages_no_pages phrase.
43 lines
731 B
Batchfile
43 lines
731 B
Batchfile
@echo off
|
|
rem TODO: Make these deletes a little less noisy
|
|
del "template_*.go"
|
|
del "gen_*.go"
|
|
del "tmpl_client/template_*.go"
|
|
del "gosora.exe"
|
|
|
|
echo Generating the dynamic code
|
|
go generate
|
|
if %errorlevel% neq 0 (
|
|
pause
|
|
exit /b %errorlevel%
|
|
)
|
|
|
|
echo Building the executable
|
|
go build -o gosora.exe -tags no_ws
|
|
if %errorlevel% neq 0 (
|
|
pause
|
|
exit /b %errorlevel%
|
|
)
|
|
|
|
echo Building the installer
|
|
go build ./install
|
|
if %errorlevel% neq 0 (
|
|
pause
|
|
exit /b %errorlevel%
|
|
)
|
|
|
|
echo Building the router generator
|
|
go build ./router_gen
|
|
if %errorlevel% neq 0 (
|
|
pause
|
|
exit /b %errorlevel%
|
|
)
|
|
|
|
echo Building the query generator
|
|
go build ./query_gen
|
|
if %errorlevel% neq 0 (
|
|
pause
|
|
exit /b %errorlevel%
|
|
)
|
|
echo Gosora was successfully built
|
|
pause |