-
Notifications
You must be signed in to change notification settings - Fork 0
/
make.bat
36 lines (28 loc) · 648 Bytes
/
make.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
@echo off
if "%1" == "build" goto :build
if "%1" == "build-debug" goto :build
if "%1" == "run" goto :run
if "%1" == "install" goto :install
if "%1" == "clean" goto :clean
REM Default target
if "%1" == "" goto :build-debug
echo Invalid target: %1
echo Usage: .\make.bat [build^|build-debug^|run^|install^|clean]
goto :eof
:build
go build -ldflags="-s -w" -o wut.exe
goto :eof
:build-debug
go build -o wut.exe
goto :eof
:run
.\wut.exe
goto :eof
:install
setlocal enabledelayedexpansion
set WUT_INSTALL_BUILD=true
powershell -ExecutionPolicy Unrestricted -File .\install.ps1
goto :eof
:clean
if exist wut.exe del wut.exe
goto :eof