2017-01-12 02:55:08 +00:00
|
|
|
@echo off
|
2017-05-07 08:31:41 +00:00
|
|
|
echo Installing 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%
|
|
|
|
)
|
2017-05-07 08:31:41 +00:00
|
|
|
go get -u github.com/StackExchange/wmi
|
|
|
|
if %errorlevel% neq 0 (
|
|
|
|
pause
|
|
|
|
exit /b %errorlevel%
|
|
|
|
)
|
|
|
|
go get -u github.com/shirou/gopsutil
|
|
|
|
if %errorlevel% neq 0 (
|
|
|
|
pause
|
|
|
|
exit /b %errorlevel%
|
|
|
|
)
|
2017-01-12 02:55:08 +00:00
|
|
|
|
|
|
|
echo Preparing the installer
|
2017-01-26 13:37:50 +00:00
|
|
|
go generate
|
|
|
|
if %errorlevel% neq 0 (
|
|
|
|
pause
|
|
|
|
exit /b %errorlevel%
|
|
|
|
)
|
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
|