Skip to content

Commit f9b704b

Browse files
committed
Try fix plist.py
1 parent 3911429 commit f9b704b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

site_scons/site_tools/plist.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ def generate_framework_plist(target, source, env):
1616
bundle_package_type = env.get("bundle_package_type", "FMWK") # FMWK or BNDL
1717
bundle_min_system = env.get("bundle_min_system", env.get("macos_deployment_target", "10.13"))
1818

19-
# Split numeric version for CFBundleVersion
19+
platforms_content = "\n".join(f" <string>{p}</string>" for p in bundle_platforms)
2020

2121
content = f"""<?xml version="1.0" encoding="UTF-8"?>
2222
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
@@ -36,7 +36,7 @@ def generate_framework_plist(target, source, env):
3636
<string>{bundle_version_string}</string>
3737
<key>CFBundleSupportedPlatforms</key>
3838
<array>
39-
{"\n".join(f" <string>{p}</string>" for p in bundle_platforms)}
39+
{platforms_content}
4040
</array>
4141
<key>CFBundleVersion</key>
4242
<string>{bundle_version}</string>

0 commit comments

Comments
 (0)