gosora/install.bat
Azareal 3b5f48b5a2 Added support for Websockets.
The Control Panel Dashboard now updates every second.
You can now see how many guests and users are online via the Control Panel Dashboard.
The Control Panel Dashboard is now a little more mobile friendly.
2017-05-11 14:04:43 +01:00

45 lines
767 B
Batchfile

@echo off
echo Installing 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%
)
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%
)
go get -u github.com/gorilla/websocket
if %errorlevel% neq 0 (
pause
exit /b %errorlevel%
)
echo Preparing the installer
go generate
if %errorlevel% neq 0 (
pause
exit /b %errorlevel%
)
go build -o gosora.exe
if %errorlevel% neq 0 (
pause
exit /b %errorlevel%
)
go build ./install
if %errorlevel% neq 0 (
pause
exit /b %errorlevel%
)
install.exe