-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of https://github.com/SparrowDb/sparrowdb
- Loading branch information
Showing
1 changed file
with
32 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
@ECHO off | ||
IF "%GOROOT%"=="" ( | ||
ECHO GOHOME not defined | ||
GOTO exit | ||
) | ||
|
||
IF NOT EXIST "%GOROOT%bin\go.exe" ( | ||
ECHO GO not found | ||
GOTO exit | ||
) | ||
|
||
SET GO="%GOROOT%bin\go.exe" | ||
|
||
ECHO Generating SparrowDb binaries | ||
IF EXIST "dist" ( | ||
RMDIR /s /q dist | ||
) | ||
MKDIR dist | ||
|
||
ECHO Building ... | ||
%GO% build -o dist/sparrow.exe . | ||
%GO% build -o dist/commander.exe tools/commander/commander.go | ||
%GO% build -o dist/datafile.exe tools/datafile/datafile.go | ||
|
||
ECHO Copying ... | ||
ROBOCOPY scripts dist/scripts | ||
ROBOCOPY config dist/config | ||
XCOPY /f README.md dist/ | ||
XCOPY /f LICENCE dist/ | ||
|
||
:exit | ||
ECHO Done |