This repository has been archived by the owner on Jun 7, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9a966c9
commit a66d312
Showing
2 changed files
with
47 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
release |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
@echo off | ||
echo =========================== | ||
echo = Go Cross Compile Script = | ||
echo = by Kevin = | ||
echo =========================== | ||
|
||
echo -^> Removing old files | ||
del /s /Q release > nul | ||
|
||
SET CGO_ENABLED=0 | ||
echo -^> Compiling AMD64 | ||
SET GOARCH=amd64 | ||
|
||
SET GOOS=windows | ||
echo --^> Compiling Windows | ||
go build -o release\fgit-windows-amd64.exe fgit.go | ||
SET GOOS=darwin | ||
echo --^> Compiling Darwin | ||
go build -o release\fgit-darwin-amd64 fgit.go | ||
SET GOOS=linux | ||
echo --^> Compiling Linux | ||
go build -o release\fgit-linux-amd64 fgit.go | ||
|
||
SET GOARCH=386 | ||
echo -^> Compiling 386 | ||
SET GOOS=windows | ||
echo --^> Compiling Windows | ||
go build -o release\fgit-windows-386.exe fgit.go | ||
SET GOOS=linux | ||
echo --^> Compiling Linux | ||
go build -o release\fgit-linux-386 fgit.go | ||
|
||
|
||
SET GOARCH=arm | ||
echo -^> Compiling ARM | ||
SET GOOS=linux | ||
echo --^> Compiling Linux | ||
go build -o release\fgit-linux-arm fgit.go | ||
|
||
SET GOARCH=arm64 | ||
echo -^> Compiling ARM64 | ||
SET GOOS=linux | ||
echo --^> Compiling Linux | ||
go build -o release\fgit-linux-arm64 fgit.go | ||
|
||
pause |