Skip to content

Commit dfba0ea

Browse files
committed
fix(ci): update macOS Info.plist with correct app name
Set CFBundleName, CFBundleDisplayName, and CFBundleIdentifier in Info.plist so the app shows as "StealthDNS" in Finder.
1 parent f690c91 commit dfba0ea

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

.github/workflows/build-release.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,14 @@ jobs:
167167
mkdir -p pkg-root/Applications
168168
cp -r "$APP_SRC" pkg-root/Applications/StealthDNS.app
169169
170+
# Update Info.plist with correct app name
171+
INFO_PLIST="pkg-root/Applications/StealthDNS.app/Contents/Info.plist"
172+
/usr/libexec/PlistBuddy -c "Set :CFBundleName StealthDNS" "$INFO_PLIST"
173+
/usr/libexec/PlistBuddy -c "Set :CFBundleDisplayName StealthDNS" "$INFO_PLIST" 2>/dev/null || \
174+
/usr/libexec/PlistBuddy -c "Add :CFBundleDisplayName string StealthDNS" "$INFO_PLIST"
175+
/usr/libexec/PlistBuddy -c "Set :CFBundleIdentifier com.opennhp.stealthdns" "$INFO_PLIST"
176+
/usr/libexec/PlistBuddy -c "Set :CFBundleShortVersionString ${{ inputs.version }}" "$INFO_PLIST"
177+
170178
# Embed CLI in Contents/MacOS/ (same directory as UI executable)
171179
cp release/stealth-dns pkg-root/Applications/StealthDNS.app/Contents/MacOS/
172180

0 commit comments

Comments
 (0)