Skip to content

Commit 5dba0a2

Browse files
committed
feat: use local code signing certificate for stable signature
1 parent d7129da commit 5dba0a2

5 files changed

Lines changed: 12 additions & 5 deletions

File tree

Sources/AppVersion.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import Foundation
22

33
enum AppVersion {
4-
static let current = "0.0.4"
4+
static let current = "0.0.5"
55
}

dist/VibeFocus.app/Contents/Info.plist

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@
1515
<key>CFBundlePackageType</key>
1616
<string>APPL</string>
1717
<key>CFBundleShortVersionString</key>
18-
<string>0.0.4</string>
18+
<string>0.0.5</string>
1919
<key>CFBundleVersion</key>
20-
<string>0.0.4</string>
20+
<string>0.0.5</string>
2121
<key>CFBundleIconFile</key>
2222
<string>AppIcon</string>
2323
<key>LSMinimumSystemVersion</key>
80 Bytes
Binary file not shown.

scripts/package_release.sh

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,15 @@ cat > "$PLIST_PATH" <<PLIST
6868
PLIST
6969

7070
if command -v codesign >/dev/null 2>&1; then
71-
echo "== Applying ad-hoc code signature =="
72-
codesign --force --deep --sign - "$APP_DIR" >/dev/null
71+
CERT_NAME="VibeFocus Local Code Signing"
72+
if security find-identity -v -p codesigning | grep -F "$CERT_NAME" >/dev/null 2>&1; then
73+
echo "== Applying local code signature: $CERT_NAME =="
74+
codesign --force --deep --sign "$CERT_NAME" "$APP_DIR" >/dev/null
75+
else
76+
echo "WARNING: Local certificate '$CERT_NAME' not found, using ad-hoc signature"
77+
echo "Create it with: security create-certificate -c '$CERT_NAME' -p codeSigning"
78+
codesign --force --deep --sign - "$APP_DIR" >/dev/null
79+
fi
7380
fi
7481

7582
ZIP_NAME="${APP_NAME}-${VERSION}-macos.zip"

0 commit comments

Comments
 (0)