2017-01-12 02:55:08 +00:00
|
|
|
@echo off
|
|
|
|
echo Installing the dependencies
|
2017-01-10 06:51:28 +00:00
|
|
|
go get -u github.com/go-sql-driver/mysql
|
2017-01-12 02:55:08 +00:00
|
|
|
if %errorlevel% neq 0 (
|
|
|
|
pause
|
|
|
|
exit /b %errorlevel%
|
|
|
|
)
|
2017-01-10 06:51:28 +00:00
|
|
|
go get -u golang.org/x/crypto/bcrypt
|
2017-01-12 02:55:08 +00:00
|
|
|
if %errorlevel% neq 0 (
|
|
|
|
pause
|
|
|
|
exit /b %errorlevel%
|
|
|
|
)
|
|
|
|
|
|
|
|
echo Preparing the installer
|
2017-01-10 06:51:28 +00:00
|
|
|
go build
|
2017-01-12 02:55:08 +00:00
|
|
|
if %errorlevel% neq 0 (
|
|
|
|
pause
|
|
|
|
exit /b %errorlevel%
|
|
|
|
)
|
2017-01-10 06:51:28 +00:00
|
|
|
go build ./install
|
2017-01-12 02:55:08 +00:00
|
|
|
if %errorlevel% neq 0 (
|
|
|
|
pause
|
|
|
|
exit /b %errorlevel%
|
|
|
|
)
|
2017-01-10 06:51:28 +00:00
|
|
|
install.exe
|