Avoid the macOS case-insensitive app/CLI build collision

This commit is contained in:
2026-10-30 22:50:46 +08:00
parent 5f98c2834f
commit 146a709358
3 changed files with 13 additions and 8 deletions
+3 -3
View File
@@ -16,11 +16,11 @@ if [ ! -x "$FYNE" ]; then
FYNE="$(go env GOPATH)/bin/fyne"
fi
mkdir -p .local
go build -o .local/Tunnel -ldflags "-X main.version=$VERSION" ./cmd/tunnel-desktop
mkdir -p .local/desktop
go build -o .local/desktop/Tunnel -ldflags "-X main.version=$VERSION" ./cmd/tunnel-desktop
rm -rf Tunnel.app
"$FYNE" package -os darwin \
-executable .local/Tunnel \
-executable .local/desktop/Tunnel \
-name Tunnel -app-id dev.tzgyn.tunnel \
-app-version "$VERSION" -app-build "$BUILD" \
-icon assets/icon.png -release