scripts: misc cleanups in macdeployqtplus

This commit is contained in:
fanquake 2019-07-16 10:44:38 +08:00
parent 51729a4dfa
commit 57cdd0697d
No known key found for this signature in database
GPG key ID: 2EEB9F5CC09526C1

View file

@ -147,7 +147,6 @@ class FrameworkInfo(object):
info.sourceContentsDirectory = os.path.join(info.frameworkPath, "Contents")
info.sourceVersionContentsDirectory = os.path.join(info.frameworkPath, "Versions", info.version, "Contents")
info.destinationResourcesDirectory = os.path.join(cls.bundleFrameworkDirectory, info.frameworkName, "Resources")
info.destinationContentsDirectory = os.path.join(cls.bundleFrameworkDirectory, info.frameworkName, "Contents")
info.destinationVersionContentsDirectory = os.path.join(cls.bundleFrameworkDirectory, info.frameworkName, "Versions", info.version, "Contents")
return info
@ -722,7 +721,7 @@ if config.dmg is not None:
for key, value in kwargs.items():
hdiutil_args.append("-" + key)
if not value is True:
if value is not True:
hdiutil_args.append(str(value))
return run(hdiutil_args, universal_newlines=True)