Skip to content

Commit 50f8a64

Browse files
fix: Improve self-signing script for macOS app by refining app bundle search paths
1 parent e78dcc5 commit 50f8a64

1 file changed

Lines changed: 9 additions & 3 deletions

File tree

.github/workflows/build.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -103,14 +103,20 @@ jobs:
103103
- name: Self-sign macOS app
104104
if: matrix.platform == 'macos-latest'
105105
run: |
106-
# Find the app bundle
107-
APP_PATH=$(find . -name "GithubSecurityAlerts.app" -type d | head -1)
106+
# Find the app bundle in the release directory
107+
APP_PATH=$(find src-tauri/target/*/release/bundle/macos -name "*.app" -type d | head -1)
108+
if [ -z "$APP_PATH" ]; then
109+
# Try alternative path
110+
APP_PATH=$(find . -path "*/target/*/release/bundle/macos/*.app" -type d | head -1)
111+
fi
112+
108113
if [ -n "$APP_PATH" ]; then
109114
echo "Self-signing app at: $APP_PATH"
110115
codesign --deep --force --verify --verbose --sign - "$APP_PATH"
111116
echo "App signed successfully"
112117
else
113-
echo "App bundle not found"
118+
echo "App bundle not found, listing directories:"
119+
find src-tauri/target -type d -name "bundle" 2>/dev/null | head -5
114120
fi
115121
116122
- name: Build Tauri app (non-macOS)

0 commit comments

Comments
 (0)