GitBucket
4.21.2
Toggle navigation
Snippets
Sign in
Files
Branches
1
Releases
Issues
1
Pull requests
Labels
Priorities
Milestones
Wiki
Forks
mark.george
/
httpcat
Browse code
Add script for building and packaging for all architectures that we care about.
master
1 parent
9c60ca0
commit
51a3af8d1844e8bc4f91d6a3f2d1c5721adf1985
Mark George
authored
on 16 May 2023
Patch
Showing
1 changed file
build_all.sh
Ignore Space
Show notes
View
build_all.sh
0 → 100755
#!/usr/bin/env bash cd src VERSION=2.4 echo Building and packaging for Linux GOOS=linux GOARCH=amd64 go build -ldflags "-s -w" -o ../httpcat-linux pushd .. cp httpcat-linux httpcat tar -czf httpcat-linux-${VERSION}.tgz httpcat rm httpcat popd echo echo Building and packaging for Windows GOOS=windows GOARCH=amd64 go build -ldflags "-s -w" -o ../httpcat-win.exe pushd .. cp httpcat-win.exe httpcat.exe zip -9 httpcat-windows-${VERSION}.zip httpcat.exe rm httpcat.exe popd echo echo Building and packaging for Intel Macs GOOS=darwin GOARCH=amd64 go build -ldflags "-s -w" -o ../httpcat-mac-intel pushd .. cp httpcat-mac-intel httpcat tar -czf httpcat-mac-intel-${VERSION}.tgz httpcat rm httpcat popd echo echo Building and packaging for ARM64 Macs GOOS=darwin GOARCH=arm64 go build -ldflags "-s -w" -o ../httpcat-mac-arm64 pushd .. cp httpcat-mac-arm64 httpcat tar -czf httpcat-mac-arm64-${VERSION}.tgz httpcat rm httpcat popd
Show line notes below