Skip to content

Commit b010538

Browse files
committed
fix: sign packaged app bundle
1 parent 8ee6800 commit b010538

2 files changed

Lines changed: 9 additions & 5 deletions

File tree

README.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -136,9 +136,10 @@ Install ProxyBar with Homebrew:
136136
brew install --cask baha2046/proxybar/proxybar
137137
```
138138

139-
Or download `ProxyBar-1.0.0.zip` from the
139+
Or download `ProxyBar-1.0.1.zip` from the
140140
[GitHub Releases](https://github.com/baha2046/ProxyBar/releases) page, unzip it,
141-
and move `ProxyBar.app` to `/Applications`.
141+
and move `ProxyBar.app` to `/Applications`. Homebrew is recommended because the
142+
release is ad-hoc signed for personal distribution.
142143

143144
## Build
144145

@@ -157,14 +158,14 @@ swift build -c release --product ProxyBar
157158
Create the app bundle and release zip:
158159

159160
```sh
160-
scripts/package-app.sh 1.0.0
161+
scripts/package-app.sh 1.0.1
161162
```
162163

163164
The app bundle and release archive are written to:
164165

165166
```text
166167
.build/ProxyBar.app
167-
dist/ProxyBar-1.0.0.zip
168+
dist/ProxyBar-1.0.1.zip
168169
```
169170

170171
## Use

scripts/package-app.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@
22
set -euo pipefail
33

44
ROOT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
5-
VERSION="${1:-1.0.0}"
5+
VERSION="${1:-1.0.1}"
66
BUILD_NUMBER="${BUILD_NUMBER:-1}"
7+
SIGNING_IDENTITY="${SIGNING_IDENTITY:--}"
78
APP_DIR="$ROOT_DIR/.build/ProxyBar.app"
89
CONTENTS_DIR="$APP_DIR/Contents"
910
MACOS_DIR="$CONTENTS_DIR/MacOS"
@@ -46,9 +47,11 @@ cat > "$CONTENTS_DIR/Info.plist" <<PLIST
4647
</plist>
4748
PLIST
4849

50+
/usr/bin/codesign --force --deep --sign "$SIGNING_IDENTITY" "$APP_DIR"
4951
/usr/bin/ditto -c -k --norsrc --keepParent "$APP_DIR" "$ZIP_PATH"
5052

5153
echo "Created $APP_DIR"
5254
echo "Created $ZIP_PATH"
55+
echo "Signed with identity: $SIGNING_IDENTITY"
5356
echo "SHA-256:"
5457
/usr/bin/shasum -a 256 "$ZIP_PATH"

0 commit comments

Comments
 (0)