-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
7655702
commit 58e6b39
Showing
3 changed files
with
45 additions
and
42 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
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 |
---|---|---|
@@ -1,30 +1,40 @@ | ||
#!/bin/bash | ||
|
||
GOOS=darwin GOARCH=386 go build -ldflags="-w -s" -o brook_darwin_386 . | ||
GOOS=darwin GOARCH=amd64 go build -ldflags="-w -s" -o brook_darwin_amd64 . | ||
GOOS=freebsd GOARCH=386 go build -ldflags="-w -s" -o brook_freebsd_386 | ||
GOOS=freebsd GOARCH=amd64 go build -ldflags="-w -s" -o brook_freebsd_amd64 | ||
GOOS=linux GOARCH=amd64 go build -ldflags="-w -s" -o brook . | ||
GOOS=linux GOARCH=amd64 go build -ldflags="-w -s" -o brook_linux_amd64 . | ||
GOOS=linux GOARCH=386 go build -ldflags="-w -s" -o brook_linux_386 . | ||
GOOS=linux GOARCH=arm64 go build -ldflags="-w -s" -o brook_linux_arm64 . | ||
GOOS=linux GOARCH=arm GOARM=7 go build -ldflags="-w -s" -o brook_linux_arm7 . | ||
GOOS=linux GOARCH=arm GOARM=6 go build -ldflags="-w -s" -o brook_linux_arm6 . | ||
GOOS=linux GOARCH=arm GOARM=5 go build -ldflags="-w -s" -o brook_linux_arm5 . | ||
GOOS=linux GOARCH=mips go build -ldflags="-w -s" -o brook_linux_mips . | ||
GOOS=linux GOARCH=mipsle go build -ldflags="-w -s" -o brook_linux_mipsle . | ||
GOOS=linux GOARCH=mips GOMIPS=softfloat go build -ldflags="-w -s" -o brook_linux_mips_softfloat . | ||
GOOS=linux GOARCH=mipsle GOMIPS=softfloat go build -ldflags="-w -s" -o brook_linux_mipsle_softfloat . | ||
GOOS=linux GOARCH=mips64 go build -ldflags="-w -s" -o brook_linux_mips64 . | ||
GOOS=linux GOARCH=mips64le go build -ldflags="-w -s" -o brook_linux_mips64le . | ||
GOOS=linux GOARCH=mips64 GOMIPS=softfloat go build -ldflags="-w -s" -o brook_linux_mips64_softfloat . | ||
GOOS=linux GOARCH=mips64le GOMIPS=softfloat go build -ldflags="-w -s" -o brook_linux_mips64le_softfloat . | ||
GOOS=linux GOARCH=ppc64 go build -ldflags="-w -s" -o brook_linux_ppc64 . | ||
GOOS=linux GOARCH=ppc64le go build -ldflags="-w -s" -o brook_linux_ppc64le . | ||
GOOS=netbsd GOARCH=386 go build -ldflags="-w -s" -o brook_netbsd_386 | ||
GOOS=netbsd GOARCH=amd64 go build -ldflags="-w -s" -o brook_netbsd_amd64 | ||
GOOS=openbsd GOARCH=386 go build -ldflags="-w -s" -o brook_openbsd_386 | ||
GOOS=openbsd GOARCH=amd64 go build -ldflags="-w -s" -o brook_openbsd_amd64 | ||
GOOS=windows GOARCH=amd64 go build -ldflags="-w -s" -o brook_windows_amd64.exe . | ||
GOOS=windows GOARCH=386 go build -ldflags="-w -s" -o brook_windows_386.exe . | ||
if [ $# -ne 1 ]; then | ||
echo "./build.sh version" | ||
exit | ||
fi | ||
|
||
mkdir _ | ||
|
||
GOOS=darwin GOARCH=386 go build -ldflags="-w -s" -o _/brook_darwin_386 . | ||
GOOS=darwin GOARCH=amd64 go build -ldflags="-w -s" -o _/brook_darwin_amd64 . | ||
GOOS=freebsd GOARCH=386 go build -ldflags="-w -s" -o _/brook_freebsd_386 . | ||
GOOS=freebsd GOARCH=amd64 go build -ldflags="-w -s" -o _/brook_freebsd_amd64 . | ||
GOOS=linux GOARCH=amd64 go build -ldflags="-w -s" -o _/brook . | ||
GOOS=linux GOARCH=amd64 go build -ldflags="-w -s" -o _/brook_linux_amd64 . | ||
GOOS=linux GOARCH=386 go build -ldflags="-w -s" -o _/brook_linux_386 . | ||
GOOS=linux GOARCH=arm64 go build -ldflags="-w -s" -o _/brook_linux_arm64 . | ||
GOOS=linux GOARCH=arm GOARM=7 go build -ldflags="-w -s" -o _/brook_linux_arm7 . | ||
GOOS=linux GOARCH=arm GOARM=6 go build -ldflags="-w -s" -o _/brook_linux_arm6 . | ||
GOOS=linux GOARCH=arm GOARM=5 go build -ldflags="-w -s" -o _/brook_linux_arm5 . | ||
GOOS=linux GOARCH=mips go build -ldflags="-w -s" -o _/brook_linux_mips . | ||
GOOS=linux GOARCH=mipsle go build -ldflags="-w -s" -o _/brook_linux_mipsle . | ||
GOOS=linux GOARCH=mips GOMIPS=softfloat go build -ldflags="-w -s" -o _/brook_linux_mips_softfloat . | ||
GOOS=linux GOARCH=mipsle GOMIPS=softfloat go build -ldflags="-w -s" -o _/brook_linux_mipsle_softfloat . | ||
GOOS=linux GOARCH=mips64 go build -ldflags="-w -s" -o _/brook_linux_mips64 . | ||
GOOS=linux GOARCH=mips64le go build -ldflags="-w -s" -o _/brook_linux_mips64le . | ||
GOOS=linux GOARCH=mips64 GOMIPS=softfloat go build -ldflags="-w -s" -o _/brook_linux_mips64_softfloat . | ||
GOOS=linux GOARCH=mips64le GOMIPS=softfloat go build -ldflags="-w -s" -o _/brook_linux_mips64le_softfloat . | ||
GOOS=linux GOARCH=ppc64 go build -ldflags="-w -s" -o _/brook_linux_ppc64 . | ||
GOOS=linux GOARCH=ppc64le go build -ldflags="-w -s" -o _/brook_linux_ppc64le . | ||
GOOS=netbsd GOARCH=386 go build -ldflags="-w -s" -o _/brook_netbsd_386 . | ||
GOOS=netbsd GOARCH=amd64 go build -ldflags="-w -s" -o _/brook_netbsd_amd64 . | ||
GOOS=openbsd GOARCH=386 go build -ldflags="-w -s" -o _/brook_openbsd_386 . | ||
GOOS=openbsd GOARCH=amd64 go build -ldflags="-w -s" -o _/brook_openbsd_amd64 . | ||
GOOS=windows GOARCH=amd64 go build -ldflags="-w -s" -o _/brook_windows_amd64.exe . | ||
GOOS=windows GOARCH=386 go build -ldflags="-w -s" -o _/brook_windows_386.exe . | ||
|
||
nami release github.com/txthinking/brook $1 _ | ||
|
||
rm -rf _ |
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