Skip to content

Commit

Permalink
trim paths on compile
Browse files Browse the repository at this point in the history
  • Loading branch information
imdawon committed Jun 27, 2024
1 parent 4a50c49 commit 1db1d89
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion build/linux_amd64.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
GOARCH=amd64 GOOS=linux go build -o release/Drawbridge_linux_amd64_$1 -ldflags="-s -w -trimpath" .
GOARCH=amd64 GOOS=linux go build -trimpath -o release/Drawbridge_linux_amd64_$1 -ldflags="-s -w" .
cp -R ./cmd/dashboard/ui/static ./release/
zip -r ./release/Drawbridge_linux_amd64_$1.zip release/static/ release/Drawbridge_linux_amd64_$1
gpg --armor --output release/Drawbridge_linux_amd64_$1.zip.asc --detach-sig release/Drawbridge_linux_amd64_$1.zip
2 changes: 1 addition & 1 deletion build/macos_arm64.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
GOARCH=arm64 GOOS=darwin go build -o release/Drawbridge_macos_arm64_$1 -ldflags="-s -w -trimpath" .
GOARCH=arm64 GOOS=darwin go build -trimpath -o release/Drawbridge_macos_arm64_$1 -ldflags="-s -w" .
cp -R ./cmd/dashboard/ui/static ./release/
zip -r ./release/Drawbridge_macos_arm64_$1.zip release/static/ release/Drawbridge_macos_arm64_$1
gpg --armor --output release/Drawbridge_macos_arm64_$1.zip.asc --detach-sig release/Drawbridge_macos_arm64_$1.zip
2 changes: 1 addition & 1 deletion build/windows_amd64.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
GOARCH=amd64 GOOS=windows go build -o release/Drawbridge_windows_amd64_$1.exe -ldflags="-s -w -trimpath" .
GOARCH=amd64 GOOS=windows go build -trimpath -o release/Drawbridge_windows_amd64_$1.exe -ldflags="-s -w" .
cp -R ./cmd/dashboard/ui/static ./release/
zip -r ./release/Drawbridge_windows_amd64_$1.zip release/static/ release/Drawbridge_windows_amd64_$1.exe
gpg --armor --output release/Drawbridge_windows_amd64_$1.zip.asc --detach-sig release/Drawbridge_windows_amd64_$1.zip

0 comments on commit 1db1d89

Please sign in to comment.