-
-
Notifications
You must be signed in to change notification settings - Fork 0
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
c89bfe9
commit 8e89ae0
Showing
2 changed files
with
77 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 |
---|---|---|
|
@@ -5,6 +5,7 @@ Thumbs.db | |
.~lock.* | ||
|
||
/vendor | ||
/release | ||
shrimp | ||
shrimp.exe | ||
SHA256SUMS | ||
|
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,76 @@ | ||
VERSION = 0.0.1 | ||
LDFLAGS = -ldflags '-s -w' -gcflags=-trimpath=${PWD} -asmflags=-trimpath=${PWD} | ||
|
||
linux_amd64: export GOOS=linux | ||
linux_amd64: export GOARCH=amd64 | ||
linux_arm: export GOOS=linux | ||
linux_arm: export GOARCH=arm | ||
linux_arm: export GOARM=6 | ||
linux_arm64: export GOOS=linux | ||
linux_arm64: export GOARCH=arm64 | ||
darwin_amd64: export GOOS=darwin | ||
darwin_amd64: export GOARCH=amd64 | ||
darwin_arm64: export GOOS=darwin | ||
darwin_arm64: export GOARCH=arm64 | ||
windows_amd64: export GOOS=windows | ||
windows_amd64: export GOARCH=amd64 | ||
windows_arm: export GOOS=windows | ||
windows_arm: export GOARCH=arm | ||
windows_arm64: export GOOS=windows | ||
windows_arm64: export GOARCH=arm64 | ||
|
||
.PHONY: all linux_amd64 linux_arm linux_arm64 darwin_amd64 darwin_arm64 windows_amd64 windows_arm windows_arm64 clean | ||
|
||
all: linux_amd64 linux_arm linux_arm64 darwin_amd64 darwin_arm64 windows_amd64 windows_arm windows_arm64 | ||
|
||
linux_amd64: | ||
go build $(LDFLAGS) | ||
mkdir -p release | ||
rm -f release/shrimp-${VERSION}-${GOOS}_${GOARCH}.zip | ||
zip release/shrimp-${VERSION}-${GOOS}_${GOARCH}.zip shrimp | ||
|
||
linux_arm: | ||
go build $(LDFLAGS) | ||
mkdir -p release | ||
rm -f release/shrimp-${VERSION}-${GOOS}_${GOARCH}.zip | ||
zip release/shrimp-${VERSION}-${GOOS}_${GOARCH}.zip shrimp | ||
|
||
linux_arm64: | ||
go build $(LDFLAGS) | ||
mkdir -p release | ||
rm -f release/shrimp-${VERSION}-${GOOS}_${GOARCH}.zip | ||
zip release/shrimp-${VERSION}-${GOOS}_${GOARCH}.zip shrimp | ||
|
||
darwin_amd64: | ||
go build $(LDFLAGS) | ||
mkdir -p release | ||
rm -f release/shrimp-${VERSION}-${GOOS}_${GOARCH}.zip | ||
zip release/shrimp-${VERSION}-${GOOS}_${GOARCH}.zip shrimp | ||
|
||
darwin_arm64: | ||
go build $(LDFLAGS) | ||
mkdir -p release | ||
rm -f release/shrimp-${VERSION}-${GOOS}_${GOARCH}.zip | ||
zip release/shrimp-${VERSION}-${GOOS}_${GOARCH}.zip shrimp | ||
|
||
windows_amd64: | ||
go build $(LDFLAGS) | ||
mkdir -p release | ||
rm -f release/shrimp-${VERSION}-${GOOS}_${GOARCH}.zip | ||
zip release/shrimp-${VERSION}-${GOOS}_${GOARCH}.zip shrimp.exe | ||
|
||
windows_arm: | ||
go build $(LDFLAGS) | ||
mkdir -p release | ||
rm -f release/shrimp-${VERSION}-${GOOS}_${GOARCH}.zip | ||
zip release/shrimp-${VERSION}-${GOOS}_${GOARCH}.zip shrimp.exe | ||
|
||
windows_arm64: | ||
go build $(LDFLAGS) | ||
mkdir -p release | ||
rm -f release/shrimp-${VERSION}-${GOOS}_${GOARCH}.zip | ||
zip release/shrimp-${VERSION}-${GOOS}_${GOARCH}.zip shrimp.exe | ||
|
||
clean: | ||
rm -rf release | ||
rm -f shrimp shrimp.exe |