Changeset View
Changeset View
Standalone View
Standalone View
contrib/macdeploy/macdeployqtplus
Show First 20 Lines • Show All 149 Lines • ▼ Show 20 Lines | def fromOtoolLibraryLine(cls, line): | ||||
info.destinationContentsDirectory = os.path.join(cls.bundleFrameworkDirectory, info.frameworkName, "Contents") | info.destinationContentsDirectory = os.path.join(cls.bundleFrameworkDirectory, info.frameworkName, "Contents") | ||||
info.destinationVersionContentsDirectory = os.path.join(cls.bundleFrameworkDirectory, info.frameworkName, "Versions", info.version, "Contents") | info.destinationVersionContentsDirectory = os.path.join(cls.bundleFrameworkDirectory, info.frameworkName, "Versions", info.version, "Contents") | ||||
return info | return info | ||||
class ApplicationBundleInfo(object): | class ApplicationBundleInfo(object): | ||||
def __init__(self, path): | def __init__(self, path): | ||||
self.path = path | self.path = path | ||||
appName = "Bitcoin-Qt" | appName = "BitcoinABC-Qt" | ||||
self.binaryPath = os.path.join(path, "Contents", "MacOS", appName) | self.binaryPath = os.path.join(path, "Contents", "MacOS", appName) | ||||
if not os.path.exists(self.binaryPath): | if not os.path.exists(self.binaryPath): | ||||
raise RuntimeError("Could not find bundle binary for " + path) | raise RuntimeError("Could not find bundle binary for " + path) | ||||
self.resourcesPath = os.path.join(path, "Contents", "Resources") | self.resourcesPath = os.path.join(path, "Contents", "Resources") | ||||
self.pluginPath = os.path.join(path, "Contents", "PlugIns") | self.pluginPath = os.path.join(path, "Contents", "PlugIns") | ||||
class DeploymentInfo(object): | class DeploymentInfo(object): | ||||
def __init__(self): | def __init__(self): | ||||
▲ Show 20 Lines • Show All 432 Lines • ▼ Show 20 Lines | |||||
if len(config.volname) == 1: | if len(config.volname) == 1: | ||||
volname = config.volname[0] | volname = config.volname[0] | ||||
else: | else: | ||||
volname = app_bundle_name | volname = app_bundle_name | ||||
# ------------------------------------------------ | # ------------------------------------------------ | ||||
target = os.path.join("dist", "Bitcoin-Qt.app") | target = os.path.join("dist", "BitcoinABC-Qt.app") | ||||
if verbose >= 2: | if verbose >= 2: | ||||
print("+ Copying source bundle +") | print("+ Copying source bundle +") | ||||
if verbose >= 3: | if verbose >= 3: | ||||
print(app_bundle, "->", target) | print(app_bundle, "->", target) | ||||
os.mkdir("dist") | os.mkdir("dist") | ||||
shutil.copytree(app_bundle, target, symlinks=True) | shutil.copytree(app_bundle, target, symlinks=True) | ||||
▲ Show 20 Lines • Show All 276 Lines • Show Last 20 Lines |