From 1db1d893efaadaa50a910956159c524336a03e1f Mon Sep 17 00:00:00 2001 From: Dawson Hensel Date: Thu, 27 Jun 2024 15:47:38 -0700 Subject: [PATCH] trim paths on compile --- build/linux_amd64.sh | 2 +- build/macos_arm64.sh | 2 +- build/windows_amd64.sh | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/build/linux_amd64.sh b/build/linux_amd64.sh index e852812..5ec89c5 100755 --- a/build/linux_amd64.sh +++ b/build/linux_amd64.sh @@ -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 diff --git a/build/macos_arm64.sh b/build/macos_arm64.sh index e2b7ea4..fc04d7f 100755 --- a/build/macos_arm64.sh +++ b/build/macos_arm64.sh @@ -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 diff --git a/build/windows_amd64.sh b/build/windows_amd64.sh index 7a2ae2a..ab0616d 100755 --- a/build/windows_amd64.sh +++ b/build/windows_amd64.sh @@ -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