Skip to content

Commit

Permalink
Merge pull request #34 from volbil/3.4
Browse files Browse the repository at this point in the history
Fix macOS QT deployment
  • Loading branch information
smartweekend authored Apr 12, 2021
2 parents 99e651a + ef3bd1d commit af0448f
Show file tree
Hide file tree
Showing 26 changed files with 36 additions and 35 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ src/qt/test/moc*.cpp
*.qm
Makefile
rapids-qt
PIVX-Qt.app
Rapids-Qt.app
background.tiff*

# Rust
Expand Down
10 changes: 5 additions & 5 deletions Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ BITCOIN_WIN_INSTALLER=$(PACKAGE)-$(PACKAGE_VERSION)-win$(WINDOWS_BITS)-setup$(EX
empty :=
space := $(empty) $(empty)

OSX_APP=PIVX-Qt.app
OSX_APP=Rapids-Qt.app
OSX_VOLNAME = $(subst $(space),-,$(PACKAGE_NAME))
OSX_DMG = $(OSX_VOLNAME).dmg
OSX_BACKGROUND_SVG=background.svg
Expand Down Expand Up @@ -106,7 +106,7 @@ $(OSX_APP)/Contents/Resources/bitcoin.icns: $(OSX_INSTALLER_ICONS)
$(MKDIR_P) $(@D)
$(INSTALL_DATA) $< $@

$(OSX_APP)/Contents/MacOS/PIVX-Qt: all-recursive
$(OSX_APP)/Contents/MacOS/Rapids-Qt: all-recursive
$(MKDIR_P) $(@D)
STRIPPROG="$(STRIP)" $(INSTALL_STRIP_PROGRAM) $(BITCOIN_QT_BIN) $@

Expand All @@ -116,7 +116,7 @@ $(OSX_APP)/Contents/Resources/Base.lproj/InfoPlist.strings:

OSX_APP_BUILT=$(OSX_APP)/Contents/PkgInfo $(OSX_APP)/Contents/Resources/empty.lproj \
$(OSX_APP)/Contents/Resources/bitcoin.icns $(OSX_APP)/Contents/Info.plist \
$(OSX_APP)/Contents/MacOS/PIVX-Qt $(OSX_APP)/Contents/Resources/Base.lproj/InfoPlist.strings
$(OSX_APP)/Contents/MacOS/Rapids-Qt $(OSX_APP)/Contents/Resources/Base.lproj/InfoPlist.strings

osx_volname:
echo $(OSX_VOLNAME) >$@
Expand All @@ -141,7 +141,7 @@ $(APP_DIST_DIR)/Applications:
@rm -f $@
@cd $(@D); $(LN_S) /Applications $(@F)

$(APP_DIST_EXTRAS): $(APP_DIST_DIR)/$(OSX_APP)/Contents/MacOS/PIVX-Qt
$(APP_DIST_EXTRAS): $(APP_DIST_DIR)/$(OSX_APP)/Contents/MacOS/Rapids-Qt

$(OSX_DMG): $(APP_DIST_EXTRAS)
$(GENISOIMAGE) -no-cache-inodes -D -l -probe -V "$(OSX_VOLNAME)" -no-pad -r -dir-mode 0755 -apple -o $@ dist
Expand All @@ -156,7 +156,7 @@ $(APP_DIST_DIR)/.background/$(OSX_BACKGROUND_IMAGE): $(OSX_BACKGROUND_IMAGE_DPIF
$(APP_DIST_DIR)/.DS_Store: $(OSX_DSSTORE_GEN)
$(PYTHON) $< "$@" "$(OSX_VOLNAME)"

$(APP_DIST_DIR)/$(OSX_APP)/Contents/MacOS/PIVX-Qt: $(OSX_APP_BUILT) $(OSX_PACKAGING)
$(APP_DIST_DIR)/$(OSX_APP)/Contents/MacOS/Rapids-Qt: $(OSX_APP_BUILT) $(OSX_PACKAGING)
INSTALLNAMETOOL=$(INSTALLNAMETOOL) OTOOL=$(OTOOL) STRIP=$(STRIP) $(PYTHON) $(OSX_DEPLOY_SCRIPT) $(OSX_APP) -translations-dir=$(QT_TRANSLATION_DIR) -add-qt-tr $(OSX_QT_TRANSLATIONS) -verbose 2

deploydir: $(APP_DIST_EXTRAS)
Expand Down
2 changes: 1 addition & 1 deletion contrib/macdeploy/custom_dsstore.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
ds['.']['vSrn'] = ('long', 1)

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

ds.flush()
ds.close()
2 changes: 1 addition & 1 deletion contrib/macdeploy/detached-sig-create.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export LC_ALL=C
set -e

ROOTDIR=dist
BUNDLE=${ROOTDIR}/PIVX-Qt.app
BUNDLE=${ROOTDIR}/Rapids-Qt.app
CODESIGN=codesign
TEMPDIR=sign.temp
TEMPLIST=${TEMPDIR}/signatures.txt
Expand Down
2 changes: 1 addition & 1 deletion contrib/macdeploy/fancy.plist
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
<integer>370</integer>
<integer>156</integer>
</array>
<key>PIVX-Qt.app</key>
<key>Rapids-Qt.app</key>
<array>
<integer>128</integer>
<integer>156</integer>
Expand Down
7 changes: 4 additions & 3 deletions contrib/macdeploy/macdeployqtplus
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ class FrameworkInfo(object):
class ApplicationBundleInfo(object):
def __init__(self, path):
self.path = path
appName = "PIVX-Qt"
appName = "Rapids-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 @@ -554,7 +554,8 @@ if len(config.fancy) == 1:
sys.exit(1)

try:
fancy = plistlib.readPlist(p)
with open(p, 'rb') as fp:
fancy = plistlib.load(fp, fmt=plistlib.FMT_XML)
except:
if verbose >= 1:
sys.stderr.write("Error: Could not parse fancy disk image plist at \"%s\"\n" % (p))
Expand Down Expand Up @@ -606,7 +607,7 @@ else:

# ------------------------------------------------

target = os.path.join("dist", "PIVX-Qt.app")
target = os.path.join("dist", "Rapids-Qt.app")

if verbose >= 2:
print("+ Copying source bundle +")
Expand Down
2 changes: 1 addition & 1 deletion doc/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Unpack the files into a directory, and then run pivx-qt.exe.

### macOS

Drag PIVX-Qt to your applications folder, and then run PIVX-Qt.
Drag Rapids-Qt to your applications folder, and then run Rapids-Qt.

### Need Help?

Expand Down
2 changes: 1 addition & 1 deletion doc/release-notes.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ This version is an optional, but recommended, update for all users and services.
How to Upgrade
==============

If you are running an older version, shut it down. Wait until it has completely shut down (which might take a few minutes for older versions), then run the installer (on Windows) or just copy over /Applications/PIVX-Qt (on Mac) or pivxd/pivx-qt (on Linux).
If you are running an older version, shut it down. Wait until it has completely shut down (which might take a few minutes for older versions), then run the installer (on Windows) or just copy over /Applications/Rapids-Qt (on Mac) or pivxd/pivx-qt (on Linux).

Downgrading warning
-------------------
Expand Down
2 changes: 1 addition & 1 deletion doc/release-notes/release-notes-2.3.0.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ PIVX Core v2.3.0 is a mandatory update for all users. This release contains vali
How to Upgrade
--------------

If you are running an older version, shut it down. Wait until it has completely shut down (which might take a few minutes for older versions), then run the installer (on Windows) or just copy over /Applications/PIVX-Qt (on Mac) or pivxd/pivx-qt (on Linux).
If you are running an older version, shut it down. Wait until it has completely shut down (which might take a few minutes for older versions), then run the installer (on Windows) or just copy over /Applications/Rapids-Qt (on Mac) or pivxd/pivx-qt (on Linux).


Compatibility
Expand Down
2 changes: 1 addition & 1 deletion doc/release-notes/release-notes-2.3.1.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Please report bugs using the issue tracker at github:
How to Upgrade
==============

If you are running an older version, shut it down. Wait until it has completely shut down (which might take a few minutes for older versions), then run the installer (on Windows) or just copy over /Applications/PIVX-Qt (on Mac) or pivxd/pivx-qt (on Linux).
If you are running an older version, shut it down. Wait until it has completely shut down (which might take a few minutes for older versions), then run the installer (on Windows) or just copy over /Applications/Rapids-Qt (on Mac) or pivxd/pivx-qt (on Linux).

Compatibility
==============
Expand Down
2 changes: 1 addition & 1 deletion doc/release-notes/release-notes-3.0.0.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ Users updating from a previous version after the 13th of October will require a
How to Upgrade
==============

If you are running an older version, shut it down. Wait until it has completely shut down (which might take a few minutes for older versions), then run the installer (on Windows) or just copy over /Applications/PIVX-Qt (on Mac) or pivxd/pivx-qt (on Linux).
If you are running an older version, shut it down. Wait until it has completely shut down (which might take a few minutes for older versions), then run the installer (on Windows) or just copy over /Applications/Rapids-Qt (on Mac) or pivxd/pivx-qt (on Linux).

Compatibility
==============
Expand Down
2 changes: 1 addition & 1 deletion doc/release-notes/release-notes-3.0.2.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ zPIV spending requires this update.
How to Upgrade
==============

If you are running an older version, shut it down. Wait until it has completely shut down (which might take a few minutes for older versions), then run the installer (on Windows) or just copy over /Applications/PIVX-Qt (on Mac) or pivxd/pivx-qt (on Linux).
If you are running an older version, shut it down. Wait until it has completely shut down (which might take a few minutes for older versions), then run the installer (on Windows) or just copy over /Applications/Rapids-Qt (on Mac) or pivxd/pivx-qt (on Linux).

Compatibility
==============
Expand Down
2 changes: 1 addition & 1 deletion doc/release-notes/release-notes-3.0.4.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Users will have a grace period to update their clients before versions prior to
How to Upgrade
==============

If you are running an older version, shut it down. Wait until it has completely shut down (which might take a few minutes for older versions), then run the installer (on Windows) or just copy over /Applications/PIVX-Qt (on Mac) or pivxd/pivx-qt (on Linux).
If you are running an older version, shut it down. Wait until it has completely shut down (which might take a few minutes for older versions), then run the installer (on Windows) or just copy over /Applications/Rapids-Qt (on Mac) or pivxd/pivx-qt (on Linux).


Compatibility
Expand Down
2 changes: 1 addition & 1 deletion doc/release-notes/release-notes-3.0.5.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Users will have a grace period to update their clients before versions prior to
How to Upgrade
==============

If you are running an older version, shut it down. Wait until it has completely shut down (which might take a few minutes for older versions), then run the installer (on Windows) or just copy over /Applications/PIVX-Qt (on Mac) or pivxd/pivx-qt (on Linux).
If you are running an older version, shut it down. Wait until it has completely shut down (which might take a few minutes for older versions), then run the installer (on Windows) or just copy over /Applications/Rapids-Qt (on Mac) or pivxd/pivx-qt (on Linux).


Compatibility
Expand Down
2 changes: 1 addition & 1 deletion doc/release-notes/release-notes-3.0.6.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Please report bugs using the issue tracker at github:
How to Upgrade
==============

If you are running an older version, shut it down. Wait until it has completely shut down (which might take a few minutes for older versions), then run the installer (on Windows) or just copy over /Applications/PIVX-Qt (on Mac) or pivxd/pivx-qt (on Linux).
If you are running an older version, shut it down. Wait until it has completely shut down (which might take a few minutes for older versions), then run the installer (on Windows) or just copy over /Applications/Rapids-Qt (on Mac) or pivxd/pivx-qt (on Linux).


Compatibility
Expand Down
2 changes: 1 addition & 1 deletion doc/release-notes/release-notes-3.1.0.1.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Please report bugs using the issue tracker at github: <https://github.com/pivx-p
How to Upgrade
==============

If you are running an older version, shut it down. Wait until it has completely shut down (which might take a few minutes for older versions), then run the installer (on Windows) or just copy over /Applications/PIVX-Qt (on Mac) or pivxd/pivx-qt (on Linux).
If you are running an older version, shut it down. Wait until it has completely shut down (which might take a few minutes for older versions), then run the installer (on Windows) or just copy over /Applications/Rapids-Qt (on Mac) or pivxd/pivx-qt (on Linux).


Compatibility
Expand Down
2 changes: 1 addition & 1 deletion doc/release-notes/release-notes-3.1.0.2.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Users updating from a previous version after Tuesday, May 8, 2018 12:00:00 AM GM
How to Upgrade
==============

If you are running an older version, shut it down. Wait until it has completely shut down (which might take a few minutes for older versions), then run the installer (on Windows) or just copy over /Applications/PIVX-Qt (on Mac) or pivxd/pivx-qt (on Linux).
If you are running an older version, shut it down. Wait until it has completely shut down (which might take a few minutes for older versions), then run the installer (on Windows) or just copy over /Applications/Rapids-Qt (on Mac) or pivxd/pivx-qt (on Linux).


Compatibility
Expand Down
6 changes: 3 additions & 3 deletions doc/release-notes/release-notes-3.1.0.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Users updating from a previous version after Tuesday, May 8, 2018 12:00:00 AM GM
How to Upgrade
==============

If you are running an older version, shut it down. Wait until it has completely shut down (which might take a few minutes for older versions), then run the installer (on Windows) or just copy over /Applications/PIVX-Qt (on Mac) or pivxd/pivx-qt (on Linux).
If you are running an older version, shut it down. Wait until it has completely shut down (which might take a few minutes for older versions), then run the installer (on Windows) or just copy over /Applications/Rapids-Qt (on Mac) or pivxd/pivx-qt (on Linux).


Compatibility
Expand Down Expand Up @@ -251,8 +251,8 @@ Minor Enhancements
- Enforced v1 zPIV spends to require a security level of 100
- Updates to zPIV spends to avoid segfaults
- Updates to configuration will now reflect on the privacy tab
- Fixed a bug that would not start masternodes from the PIVX-Qt masternodes tab
- Updated PIVX-Qt tooltips
- Fixed a bug that would not start masternodes from the Rapids-Qt masternodes tab
- Updated Rapids-Qt tooltips
- Icon added to the wallet GUI to reflect the status of autominting (active / inactive)
- Updated errors causing the blockchain to corrupt when experiencing unexpected wallet shutdowns
- Updated RPC help outputs & removed the deprecated obfuscation.
Expand Down
2 changes: 1 addition & 1 deletion doc/release-notes/release-notes-3.1.1.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ PIVX Core v3.1.1 is a non-mandatory update to address bugs and introduce minor e
How to Upgrade
==============

If you are running an older version, shut it down. Wait until it has completely shut down (which might take a few minutes for older versions), then run the installer (on Windows) or just copy over /Applications/PIVX-Qt (on Mac) or pivxd/pivx-qt (on Linux).
If you are running an older version, shut it down. Wait until it has completely shut down (which might take a few minutes for older versions), then run the installer (on Windows) or just copy over /Applications/Rapids-Qt (on Mac) or pivxd/pivx-qt (on Linux).


Compatibility
Expand Down
2 changes: 1 addition & 1 deletion doc/release-notes/release-notes-3.2.0.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Masternodes will need to be restarted once both the masternode daemon and the co
How to Upgrade
==============

If you are running an older version, shut it down. Wait until it has completely shut down (which might take a few minutes for older versions), then run the installer (on Windows) or just copy over /Applications/PIVX-Qt (on Mac) or pivxd/pivx-qt (on Linux).
If you are running an older version, shut it down. Wait until it has completely shut down (which might take a few minutes for older versions), then run the installer (on Windows) or just copy over /Applications/Rapids-Qt (on Mac) or pivxd/pivx-qt (on Linux).

Wallets for existing users upgrading from an earlier version will undergo a supply recalculation the first time v3.2.0 is started. An initial light weight (partial) recalculation will be attempted first, but if that fails then the wallet will do a full recalculation the next time it is started. This recalculation is a one-time event.

Expand Down
2 changes: 1 addition & 1 deletion doc/release-notes/release-notes-3.3.0.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Masternodes will need to be restarted once both the masternode daemon and the co
How to Upgrade
==============

If you are running an older version, shut it down. Wait until it has completely shut down (which might take a few minutes for older versions), then run the installer (on Windows) or just copy over /Applications/PIVX-Qt (on Mac) or pivxd/pivx-qt (on Linux).
If you are running an older version, shut it down. Wait until it has completely shut down (which might take a few minutes for older versions), then run the installer (on Windows) or just copy over /Applications/Rapids-Qt (on Mac) or pivxd/pivx-qt (on Linux).


Compatibility
Expand Down
2 changes: 1 addition & 1 deletion doc/release-notes/release-notes-3.4.0.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Masternodes will need to be restarted once both the masternode daemon and the co
How to Upgrade
==============

If you are running an older version, shut it down. Wait until it has completely shut down (which might take a few minutes for older versions), then run the installer (on Windows) or just copy over /Applications/PIVX-Qt (on Mac) or pivxd/pivx-qt (on Linux).
If you are running an older version, shut it down. Wait until it has completely shut down (which might take a few minutes for older versions), then run the installer (on Windows) or just copy over /Applications/Rapids-Qt (on Mac) or pivxd/pivx-qt (on Linux).


Compatibility
Expand Down
2 changes: 1 addition & 1 deletion doc/release-notes/release-notes-4.0.0.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Masternodes will need to be restarted once both the masternode daemon and the co
How to Upgrade
==============

If you are running an older version, shut it down. Wait until it has completely shut down (which might take a few minutes for older versions), then run the installer (on Windows) or just copy over /Applications/PIVX-Qt (on Mac) or pivxd/pivx-qt (on Linux).
If you are running an older version, shut it down. Wait until it has completely shut down (which might take a few minutes for older versions), then run the installer (on Windows) or just copy over /Applications/Rapids-Qt (on Mac) or pivxd/pivx-qt (on Linux).


Compatibility
Expand Down
2 changes: 1 addition & 1 deletion doc/release-notes/release-notes-4.1.0.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ This version is an optional, but recommended, update for all users and services.
How to Upgrade
==============

If you are running an older version, shut it down. Wait until it has completely shut down (which might take a few minutes for older versions), then run the installer (on Windows) or just copy over /Applications/PIVX-Qt (on Mac) or pivxd/pivx-qt (on Linux).
If you are running an older version, shut it down. Wait until it has completely shut down (which might take a few minutes for older versions), then run the installer (on Windows) or just copy over /Applications/Rapids-Qt (on Mac) or pivxd/pivx-qt (on Linux).


Compatibility
Expand Down
2 changes: 1 addition & 1 deletion doc/release-notes/release-notes-4.2.0.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ This version is an optional, but recommended, update for all users and services.
How to Upgrade
==============

If you are running an older version, shut it down. Wait until it has completely shut down (which might take a few minutes for older versions), then run the installer (on Windows) or just copy over /Applications/PIVX-Qt (on Mac) or pivxd/pivx-qt (on Linux).
If you are running an older version, shut it down. Wait until it has completely shut down (which might take a few minutes for older versions), then run the installer (on Windows) or just copy over /Applications/Rapids-Qt (on Mac) or pivxd/pivx-qt (on Linux).


Compatibility
Expand Down
4 changes: 2 additions & 2 deletions share/qt/Info.plist.in
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@
<string>????</string>

<key>CFBundleExecutable</key>
<string>PIVX-Qt</string>
<string>Rapids-Qt</string>

<key>CFBundleName</key>
<string>PIVX-Qt</string>
<string>Rapids-Qt</string>

<key>LSHasLocalizedDisplayName</key>
<true/>
Expand Down

0 comments on commit af0448f

Please sign in to comment.