-
Notifications
You must be signed in to change notification settings - Fork 2
macos: launch from finder in catalina [CPP-770] #590
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
b96726c
a7a9865
db41920
b3df9b6
be33664
85b35d9
cbf73eb
3af6dfe
e26ae27
710f06d
8e0f59d
815884d
a4b2658
6cec12a
ba3ffa6
b5beeac
9e2ac8a
2c15781
efff571
4625427
d41dda9
b434734
f4c5cf6
b4bde3e
bd4a1a5
b421698
ab29348
f19256e
ba4c3a6
f33e486
6ada8f4
b1255f2
bae8a43
ae112dd
0f64085
5e2f20b
d52a500
cd9ecdf
ca9e384
c1d5b40
7d4e18b
db539cd
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,11 +2,34 @@ | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | ||
<plist version="1.0"> | ||
<dict> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Looking at https://github.com/mherrmann/fbs/blob/d6dbde2bdff01907c4b83524f67a38df83fa0f2c/fbs/_defaults/src/freeze/mac/Contents/Info.plist looks like we're missing
and
Were these intentionally skipped? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. These looked like they could potentially change the behavior of the app (based on naming, didn't look up the docs), so I skipped them intentionally-- the new keys I did add felt more like metadata. |
||
<key>CFBundleIconFile</key> | ||
<string>Swift Console.icns</string> | ||
<key>NSHighResolutionCapable</key> | ||
<string>True</string> | ||
<key>CFBundlePackageType</key> | ||
<string>APPL</string> | ||
<key>CFBundleIconFile</key> | ||
<string>Swift Console.icns</string> | ||
|
||
<key>NSHighResolutionCapable</key> | ||
<string>True</string> | ||
|
||
<key>CFBundlePackageType</key> | ||
<string>APPL</string> | ||
|
||
<key>CFBundleExecutable</key> | ||
<string>Swift Console</string> | ||
|
||
<key>CFBundleDisplayName</key> | ||
<string>Swift Console</string> | ||
|
||
<key>CFBundleInfoDictionaryVersion</key> | ||
<string>6.0</string> | ||
|
||
<key>CFBundleIdentifier</key> | ||
<string>com.swift-nav.SwiftConsole</string> | ||
|
||
<key>CFBundleName</key> | ||
<string>Swift Console</string> | ||
|
||
<key>CFBundleShortVersionString</key> | ||
<string>@@VERSION@@</string> | ||
|
||
<key>CFBundleVersion</key> | ||
<string>@@VERSION@@</string> | ||
</dict> | ||
</plist> | ||
</plist> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What controls whether the path is
Resources
orResources/lib
?Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This change is basically tweaking the heuristic that's used to detect if we're living inside of a macOS .app bundle -- before I was trying to use just "resources" but the heuristic was triggered when running a build from "py39-dist". The PYTHONHOME var wants a path that contains a "lib" directory (technically
lib/python3.9
) so we have to supply just the "Resources" path so that Python loads correctly.