Skip to content

Commit

Permalink
build: more platforms for release
Browse files Browse the repository at this point in the history
  • Loading branch information
akavel committed Dec 10, 2020
1 parent 484bfbe commit 96a5f1b
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions buildcross.bat
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@
rem NOTE: see also:
rem https://github.com/golang/go/wiki/WindowsCrossCompiling
rem https://github.com/golang/go/wiki/InstallFromSource#install-c-tools
for %%p in (windows_386 windows_amd64) do call :build rsrc %%p
call :build rsrc windows_386
call :build rsrc windows_amd64
call :build rsrc linux_amd64
call :build rsrc darwin_amd64
set GOOS=
set GOARCH=
goto :eof
Expand All @@ -17,7 +20,7 @@ call set GOOS=%%PLATFORM:_%GOARCH%=%%
set FNAME=%APP%_%PLATFORM%
if "%GOOS%"=="windows" set FNAME=%FNAME%.exe
:: Do the build
echo %FNAME%
echo == %FNAME% ==
go build -i -v -o %FNAME% .
goto :eof

0 comments on commit 96a5f1b

Please sign in to comment.