- version = commands.getoutput("bin/wx-config --release")
- basename = commands.getoutput("bin/wx-config --basename")
- configname = commands.getoutput("bin/wx-config --selected-config")
-
- run("ln -s -f bin Resources")
+ fwname = getFrameworkName(options)
+ version = getoutput("bin/wx-config --release")
+ version_full = getoutput("bin/wx-config --version")
+ basename = getoutput("bin/wx-config --basename")
+ configname = getoutput("bin/wx-config --selected-config")
+
+ os.makedirs("Resources")
+ wxplist = dict(
+ CFBundleDevelopmentRegion="English",
+ CFBundleIdentifier='org.wxwidgets.wxosxcocoa',
+ CFBundleName=fwname,
+ CFBundleVersion=version_full,
+ CFBundleExecutable=fwname,
+ CFBundleGetInfoString="%s %s" % (fwname, version_full),
+ CFBundlePackageType="FMWK",
+ CFBundleSignature="WXCO",
+ CFBundleShortVersionString=version_full,
+ CFBundleInfoDictionaryVersion="6.0",
+ )
+
+ import plistlib
+ plistlib.writePlist(wxplist, os.path.join(frameworkRootDir, "Resources", "Info.plist"))