|
|
|
|
@@ -155,7 +155,7 @@ class FrameworkInfo(object):
|
|
|
|
|
class ApplicationBundleInfo(object):
|
|
|
|
|
def __init__(self, path):
|
|
|
|
|
self.path = path
|
|
|
|
|
appName = "Bitcoin-Qt"
|
|
|
|
|
appName = "Lore-Qt"
|
|
|
|
|
self.binaryPath = os.path.join(path, "Contents", "MacOS", appName)
|
|
|
|
|
if not os.path.exists(self.binaryPath):
|
|
|
|
|
raise RuntimeError("Could not find bundle binary for " + path)
|
|
|
|
|
@@ -495,6 +495,7 @@ ap.add_argument("-fancy", nargs=1, metavar="plist", default=[], help="make a fan
|
|
|
|
|
ap.add_argument("-add-qt-tr", nargs=1, metavar="languages", default=[], help="add Qt translation files to the bundle's ressources; the language list must be separated with commas, not with whitespace")
|
|
|
|
|
ap.add_argument("-translations-dir", nargs=1, metavar="path", default=None, help="Path to Qt's translation files")
|
|
|
|
|
ap.add_argument("-add-resources", nargs="+", metavar="path", default=[], help="list of additional files or folders to be copied into the bundle's resources; must be the last argument")
|
|
|
|
|
ap.add_argument("-volname", nargs=1, metavar="volname", default=[], help="custom volume name for dmg")
|
|
|
|
|
|
|
|
|
|
config = ap.parse_args()
|
|
|
|
|
|
|
|
|
|
@@ -596,7 +597,7 @@ if os.path.exists("dist"):
|
|
|
|
|
|
|
|
|
|
# ------------------------------------------------
|
|
|
|
|
|
|
|
|
|
target = os.path.join("dist", "Bitcoin-Qt.app")
|
|
|
|
|
target = os.path.join("dist", "Lore-Qt.app")
|
|
|
|
|
|
|
|
|
|
if verbose >= 2:
|
|
|
|
|
print("+ Copying source bundle +")
|
|
|
|
|
@@ -757,7 +758,7 @@ if config.dmg is not None:
|
|
|
|
|
|
|
|
|
|
if fancy is None:
|
|
|
|
|
try:
|
|
|
|
|
runHDIUtil("create", dmg_name, srcfolder="dist", format="UDBZ", volname="Bitcoin-Core", ov=True)
|
|
|
|
|
runHDIUtil("create", dmg_name, srcfolder="dist", format="UDBZ", volname="Blackcoin-Core", ov=True)
|
|
|
|
|
except subprocess.CalledProcessError as e:
|
|
|
|
|
sys.exit(e.returncode)
|
|
|
|
|
else:
|
|
|
|
|
@@ -772,7 +773,7 @@ if config.dmg is not None:
|
|
|
|
|
if verbose >= 3:
|
|
|
|
|
print("Creating temp image for modification...")
|
|
|
|
|
try:
|
|
|
|
|
runHDIUtil("create", dmg_name + ".temp", srcfolder="dist", format="UDRW", size=size, volname="Bitcoin-Core", ov=True)
|
|
|
|
|
runHDIUtil("create", dmg_name + ".temp", srcfolder="dist", format="UDRW", size=size, volname="Blackcoin-Core", ov=True)
|
|
|
|
|
except subprocess.CalledProcessError as e:
|
|
|
|
|
sys.exit(e.returncode)
|
|
|
|
|
|
|
|
|
|
@@ -837,7 +838,7 @@ if config.dmg is not None:
|
|
|
|
|
items_positions.append(itemscript.substitute(params))
|
|
|
|
|
|
|
|
|
|
params = {
|
|
|
|
|
"disk" : "Bitcoin-Core",
|
|
|
|
|
"disk" : "Blackcoin-Core",
|
|
|
|
|
"window_bounds" : "300,300,800,620",
|
|
|
|
|
"icon_size" : "96",
|
|
|
|
|
"background_commands" : "",
|
|
|
|
|
|