25 lines
410 B
Batchfile
25 lines
410 B
Batchfile
@echo off
|
|
echo Installing the dependencies
|
|
go get -u github.com/go-sql-driver/mysql
|
|
if %errorlevel% neq 0 (
|
|
pause
|
|
exit /b %errorlevel%
|
|
)
|
|
go get -u golang.org/x/crypto/bcrypt
|
|
if %errorlevel% neq 0 (
|
|
pause
|
|
exit /b %errorlevel%
|
|
)
|
|
|
|
echo Preparing the installer
|
|
go build
|
|
if %errorlevel% neq 0 (
|
|
pause
|
|
exit /b %errorlevel%
|
|
)
|
|
go build ./install
|
|
if %errorlevel% neq 0 (
|
|
pause
|
|
exit /b %errorlevel%
|
|
)
|
|
install.exe |