Skip to content

Commit 3233441

Browse files
committed
fix: macOS App Icon
1 parent a8e3b43 commit 3233441

2 files changed

Lines changed: 14 additions & 1 deletion

File tree

resources/macos/Info.plist

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@
1313
<key>CFBundleShortVersionString</key>
1414
<string>2026.2.0</string>
1515
<key>CFBundleIconFile</key>
16-
<string>@APP_ID@</string>
16+
<string>@APP_ID@.icns</string>
17+
<key>NSHighResolutionCapable</key>
18+
<true/>
1719
<key>CFBundlePackageType</key>
1820
<string>APPL</string>
1921
<key>LSMinimumSystemVersion</key>

resources/macos/publish-and-package.sh

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,17 @@ info "Setting executable permissions..."
193193
chmod +x "$APP_BUNDLE/Contents/MacOS/$PROJECT"
194194
success "Set executable permissions."
195195

196+
# Ad-hoc re-sign all binaries after install_name_tool modifications
197+
info "Ad-hoc signing bundled libraries and executables..."
198+
find "$FRAMEWORKS_DIR" \( -name "*.dylib" -o -name "*.so" \) | while read -r lib; do
199+
codesign --force --sign - "$lib" 2>/dev/null || true
200+
done
201+
find "$APP_BUNDLE/Contents/MacOS" \( -name "*.dylib" -o -name "*.so" \) | while read -r lib; do
202+
codesign --force --sign - "$lib" 2>/dev/null || true
203+
done
204+
codesign --force --sign - "$APP_BUNDLE/Contents/MacOS/$REAL_BINARY"
205+
success "Ad-hoc signed bundled libraries and executables."
206+
196207
# Restore pwd
197208
info "Restoring previous working directory..."
198209
cd "$CURRENT_PWD"

0 commit comments

Comments
 (0)