Skip to content

Commit

Permalink
Add make.cmd
Browse files Browse the repository at this point in the history
support `make all` and `make package`
  • Loading branch information
hymkor committed May 2, 2021
1 parent 13df007 commit 4ec32b7
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions make.cmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
@echo off
setlocal
call :"%1"
endlocal
exit /b

:""
:"all"
go build
exit /b

:"package"
set /P "VERSION=Version ? (x.y.z) "
for %%I in (linux windows.exe) do (
set "GOOS=%%~nI"
@for %%J in (386 amd64) do @(
set "GOARCH=%%J"
go build
zip xnhttpd-%VERSION%-%%~nI-%%J.zip xnhttpd%%~xI
)
)
echo off
exit /b

0 comments on commit 4ec32b7

Please sign in to comment.