Skip to content

Commit d3ca056

Browse files
committed
gh-142295: Update macOS framework build Info.plist files. (#149479)
For Python macOS framework builds, update all Info.plist files to be more compliant with current Apple guidelines. Original patch contributed by Martinus Verburg. (cherry picked from commit 5fcab14)
1 parent af65a8b commit d3ca056

5 files changed

Lines changed: 104 additions & 94 deletions

File tree

Mac/IDLE/IDLE.app/Contents/Info.plist

Lines changed: 25 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,23 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
33
<plist version="1.0">
44
<dict>
5-
<key>CFBundleDevelopmentRegion</key>
6-
<string>English</string>
5+
<key>CFBundleName</key>
6+
<string>IDLE</string>
7+
<key>CFBundleIdentifier</key>
8+
<string>org.python.IDLE</string>
9+
<key>CFBundleVersion</key>
10+
<string>%version%</string>
11+
<key>CFBundlePackageType</key>
12+
<string>APPL</string>
13+
<key>CFBundleSignature</key>
14+
<string>????</string>
15+
<key>CFBundleExecutable</key>
16+
<string>IDLE</string>
17+
<key>CFBundleIconFile</key>
18+
<string>IDLE.icns</string>
19+
<key>CFBundleInfoDictionaryVersion</key>
20+
<string>6.0</string>
721
<key>CFBundleDocumentTypes</key>
822
<array>
923
<dict>
@@ -34,26 +48,16 @@
3448
<string>Editor</string>
3549
</dict>
3650
</array>
37-
<key>CFBundleExecutable</key>
38-
<string>IDLE</string>
39-
<key>CFBundleGetInfoString</key>
40-
<string>%version%, © 2001-2024 Python Software Foundation</string>
41-
<key>CFBundleIconFile</key>
42-
<string>IDLE.icns</string>
43-
<key>CFBundleIdentifier</key>
44-
<string>org.python.IDLE</string>
45-
<key>CFBundleInfoDictionaryVersion</key>
46-
<string>6.0</string>
47-
<key>CFBundleName</key>
48-
<string>IDLE</string>
49-
<key>CFBundlePackageType</key>
50-
<string>APPL</string>
5151
<key>CFBundleShortVersionString</key>
5252
<string>%version%</string>
53-
<key>CFBundleSignature</key>
54-
<string>????</string>
55-
<key>CFBundleVersion</key>
56-
<string>%version%</string>
53+
<key>CFBundleSupportedPlatforms</key>
54+
<array>
55+
<string>MacOSX</string>
56+
</array>
57+
<key>NSHumanReadableCopyright</key>
58+
<string>Copyright © 2001 Python Software Foundation. All rights reserved.</string>
59+
<key>CFBundleDevelopmentRegion</key>
60+
<string>English</string>
5761
<key>NSHighResolutionCapable</key>
5862
<true/>
5963
<key>CFBundleAllowMixedLocalizations</key>

Mac/PythonLauncher/Info.plist.in

Lines changed: 24 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,22 @@
22
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
33
<plist version="1.0">
44
<dict>
5-
<key>CFBundleDevelopmentRegion</key>
6-
<string>en</string>
5+
<key>CFBundleName</key>
6+
<string>Python Launcher</string>
7+
<key>CFBundleIdentifier</key>
8+
<string>org.python.PythonLauncher</string>
9+
<key>CFBundleVersion</key>
10+
<string>%VERSION%</string>
11+
<key>CFBundlePackageType</key>
12+
<string>APPL</string>
13+
<key>CFBundleSignature</key>
14+
<string>PytL</string>
15+
<key>CFBundleExecutable</key>
16+
<string>Python Launcher</string>
17+
<key>CFBundleIconFile</key>
18+
<string>PythonLauncher.icns</string>
19+
<key>CFBundleInfoDictionaryVersion</key>
20+
<string>6.0</string>
721
<key>CFBundleDocumentTypes</key>
822
<array>
923
<dict>
@@ -37,28 +51,16 @@
3751
<string>MyDocument</string>
3852
</dict>
3953
</array>
40-
<key>CFBundleExecutable</key>
41-
<string>Python Launcher</string>
42-
<key>NSHumanReadableCopyright</key>
43-
<string>Copyright © 2001 Python Software Foundation</string>
44-
<key>CFBundleGetInfoString</key>
45-
<string>%VERSION%, © 2001 Python Software Foundation</string>
46-
<key>CFBundleIconFile</key>
47-
<string>PythonLauncher.icns</string>
48-
<key>CFBundleIdentifier</key>
49-
<string>org.python.PythonLauncher</string>
50-
<key>CFBundleInfoDictionaryVersion</key>
51-
<string>6.0</string>
52-
<key>CFBundleName</key>
53-
<string>Python Launcher</string>
54-
<key>CFBundlePackageType</key>
55-
<string>APPL</string>
5654
<key>CFBundleShortVersionString</key>
5755
<string>%VERSION%</string>
58-
<key>CFBundleSignature</key>
59-
<string>PytL</string>
60-
<key>CFBundleVersion</key>
61-
<string>%VERSION%</string>
56+
<key>CFBundleSupportedPlatforms</key>
57+
<array>
58+
<string>MacOSX</string>
59+
</array>
60+
<key>NSHumanReadableCopyright</key>
61+
<string>Copyright © 2001 Python Software Foundation. All rights reserved.</string>
62+
<key>CFBundleDevelopmentRegion</key>
63+
<string>English</string>
6264
<key>NSMainNibFile</key>
6365
<string>MainMenu</string>
6466
<key>NSPrincipalClass</key>

Mac/Resources/app/Info.plist.in

Lines changed: 34 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,23 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
33
<plist version="1.0">
44
<dict>
5-
<key>CFBundleDevelopmentRegion</key>
6-
<string>English</string>
5+
<key>CFBundleName</key>
6+
<string>Python</string>
7+
<key>CFBundleIdentifier</key>
8+
<string>%bundleid%</string>
9+
<key>CFBundleVersion</key>
10+
<string>%version%</string>
11+
<key>CFBundlePackageType</key>
12+
<string>APPL</string>
13+
<key>CFBundleSignature</key>
14+
<string>PytX</string>
15+
<key>CFBundleExecutable</key>
16+
<string>Python</string>
17+
<key>CFBundleIconFile</key>
18+
<string>PythonInterpreter.icns</string>
19+
<key>CFBundleInfoDictionaryVersion</key>
20+
<string>6.0</string>
721
<key>CFBundleDocumentTypes</key>
822
<array>
923
<dict>
@@ -17,48 +31,33 @@
1731
<string>Viewer</string>
1832
</dict>
1933
</array>
20-
<key>CFBundleExecutable</key>
21-
<string>Python</string>
22-
<key>CFBundleGetInfoString</key>
23-
<string>%version%, (c) 2001-2024 Python Software Foundation.</string>
34+
<key>CFBundleShortVersionString</key>
35+
<string>%version%</string>
36+
<key>CFBundleSupportedPlatforms</key>
37+
<array>
38+
<string>MacOSX</string>
39+
</array>
40+
<key>NSHumanReadableCopyright</key>
41+
<string>Copyright © 2001 Python Software Foundation. All rights reserved.</string>
42+
<key>CFBundleDevelopmentRegion</key>
43+
<string>English</string>
44+
<key>NSHighResolutionCapable</key>
45+
<true/>
46+
<key>NSAppleScriptEnabled</key>
47+
<true/>
48+
<key>CFBundleAllowMixedLocalizations</key>
49+
<true/>
2450
<key>CFBundleHelpBookFolder</key>
2551
<array>
2652
<string>Documentation</string>
27-
<string>PythonDocumentation</string>
2853
</array>
2954
<key>CFBundleHelpBookName</key>
30-
<string>MacPython Help</string>
55+
<string>Python Help</string>
3156
<key>CFBundleHelpTOCFile</key>
3257
<string>index.html</string>
33-
<key>CFBundleIconFile</key>
34-
<string>PythonInterpreter.icns</string>
35-
<key>CFBundleIdentifier</key>
36-
<string>%bundleid%</string>
37-
<key>CFBundleInfoDictionaryVersion</key>
38-
<string>6.0</string>
39-
<key>CFBundleLongVersionString</key>
40-
<string>%version%, (c) 2001-2024 Python Software Foundation.</string>
41-
<key>CFBundleName</key>
42-
<string>Python</string>
43-
<key>CFBundlePackageType</key>
44-
<string>APPL</string>
45-
<key>CFBundleShortVersionString</key>
46-
<string>%version%</string>
47-
<key>CFBundleSignature</key>
48-
<string>PytX</string>
49-
<key>CFBundleVersion</key>
50-
<string>%version%</string>
5158
<key>CSResourcesFileMapped</key>
5259
<true/>
5360
<key>LSRequiresCarbon</key>
5461
<true/>
55-
<key>NSAppleScriptEnabled</key>
56-
<true/>
57-
<key>NSHumanReadableCopyright</key>
58-
<string>(c) 2001-2024 Python Software Foundation.</string>
59-
<key>NSHighResolutionCapable</key>
60-
<true/>
61-
<key>CFBundleAllowMixedLocalizations</key>
62-
<true/>
6362
</dict>
6463
</plist>

Mac/Resources/framework/Info.plist.in

Lines changed: 18 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,31 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<!DOCTYPE plist SYSTEM "file://localhost/System/Library/DTDs/PropertyList.dtd">
3-
<plist version="0.9">
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
44
<dict>
5-
<key>CFBundleDevelopmentRegion</key>
6-
<string>English</string>
7-
<key>CFBundleExecutable</key>
5+
<key>CFBundleName</key>
86
<string>Python</string>
9-
<key>CFBundleGetInfoString</key>
10-
<string>Python Runtime and Library</string>
117
<key>CFBundleIdentifier</key>
128
<string>@PYTHONFRAMEWORKIDENTIFIER@</string>
13-
<key>CFBundleInfoDictionaryVersion</key>
14-
<string>6.0</string>
15-
<key>CFBundleName</key>
16-
<string>Python</string>
9+
<key>CFBundleVersion</key>
10+
<string>%VERSION%</string>
1711
<key>CFBundlePackageType</key>
1812
<string>FMWK</string>
19-
<key>CFBundleShortVersionString</key>
20-
<string>%VERSION%, (c) 2001-2024 Python Software Foundation.</string>
21-
<key>CFBundleLongVersionString</key>
22-
<string>%VERSION%, (c) 2001-2024 Python Software Foundation.</string>
2313
<key>CFBundleSignature</key>
2414
<string>????</string>
25-
<key>CFBundleVersion</key>
15+
<key>CFBundleExecutable</key>
16+
<string>Python</string>
17+
<key>CFBundleInfoDictionaryVersion</key>
18+
<string>6.0</string>
19+
<key>CFBundleShortVersionString</key>
2620
<string>%VERSION%</string>
21+
<key>CFBundleSupportedPlatforms</key>
22+
<array>
23+
<string>MacOSX</string>
24+
</array>
25+
<key>NSHumanReadableCopyright</key>
26+
<string>Copyright © 2001 Python Software Foundation. All rights reserved.</string>
27+
<key>CFBundleDevelopmentRegion</key>
28+
<string>English</string>
2729
<key>CFBundleAllowMixedLocalizations</key>
2830
<true/>
2931
</dict>
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
For Python macOS framework builds, update Info.plist files to be more
2+
compliant with current Apple guidelines. Original patch contributed by
3+
Martinus Verburg.

0 commit comments

Comments
 (0)