Skip to content

Commit

Permalink
Merge pull request #34 from pensokha/Blackcoin-Lore
Browse files Browse the repository at this point in the history
fix macdeploy script
  • Loading branch information
janko33bd committed Mar 5, 2018
2 parents 8c437da + 6efd9d8 commit a4480a0
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 9 deletions.
1 change: 1 addition & 0 deletions Makefile.am
Expand Up @@ -16,6 +16,7 @@ WALLET_UTILITY_BIN=$(top_builddir)/src/wallet-utility$(EXEEXT)
BITCOIN_WIN_INSTALLER=$(PACKAGE)-$(PACKAGE_VERSION)-win$(WINDOWS_BITS)-setup$(EXEEXT)

OSX_APP=Lore-Qt.app
OSX_VOLNAME =Blackcoin-Lore.dmg
OSX_DMG=Blackcoin-Lore.dmg
OSX_BACKGROUND_IMAGE=background.tiff
OSX_DSSTORE_GEN=$(top_srcdir)/contrib/macdeploy/custom_dsstore.py
Expand Down
2 changes: 1 addition & 1 deletion contrib/macdeploy/Base.lproj/InfoPlist.strings
@@ -1 +1 @@
{ CFBundleDisplayName = "Bitcoin Core"; CFBundleName = "Bitcoin Core"; }
{ CFBundleDisplayName = "Blackcoin Core"; CFBundleName = "Blackcoin Core"; }
2 changes: 1 addition & 1 deletion contrib/macdeploy/custom_dsstore.py
Expand Up @@ -54,7 +54,7 @@
ds['.']['vSrn'] = ('long', 1)

ds['Applications']['Iloc'] = (370, 156)
ds['Bitcoin-Qt.app']['Iloc'] = (128, 156)
ds['Lore-Qt.app']['Iloc'] = (128, 156)

ds.flush()
ds.close()
2 changes: 1 addition & 1 deletion contrib/macdeploy/detached-sig-create.sh
Expand Up @@ -2,7 +2,7 @@
set -e

ROOTDIR=dist
BUNDLE="${ROOTDIR}/Bitcoin-Qt.app"
BUNDLE="${ROOTDIR}/Lore-Qt.app"
CODESIGN=codesign
TEMPDIR=sign.temp
TEMPLIST=${TEMPDIR}/signatures.txt
Expand Down
2 changes: 1 addition & 1 deletion contrib/macdeploy/fancy.plist
Expand Up @@ -22,7 +22,7 @@
<integer>370</integer>
<integer>156</integer>
</array>
<key>Bitcoin-Qt.app</key>
<key>Lore-Qt.app</key>
<array>
<integer>128</integer>
<integer>156</integer>
Expand Down
11 changes: 6 additions & 5 deletions contrib/macdeploy/macdeployqtplus
Expand Up @@ -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)
Expand Down Expand Up @@ -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()

Expand Down Expand Up @@ -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 +")
Expand Down Expand Up @@ -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:
Expand All @@ -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)

Expand Down Expand Up @@ -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" : "",
Expand Down

0 comments on commit a4480a0

Please sign in to comment.