Skip to content

Commit

Permalink
Fix deployment bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
volbil committed Apr 12, 2021
1 parent 9006422 commit 06add8f
Show file tree
Hide file tree
Showing 32 changed files with 147 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
109 changes: 109 additions & 0 deletions PIVX-Qt.app/Contents/Info.plist
Original file line number Diff line number Diff line change
@@ -0,0 +1,109 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist SYSTEM "file://localhost/System/Library/DTDs/PropertyList.dtd">
<plist version="0.9">
<dict>
<key>LSMinimumSystemVersion</key>
<string>10.10.0</string>

<key>LSArchitecturePriority</key>
<array>
<string>x86_64</string>
</array>

<key>CFBundleIconFile</key>
<string>bitcoin.icns</string>

<key>CFBundlePackageType</key>
<string>APPL</string>

<key>CFBundleGetInfoString</key>
<string>4.0.0.0, Copyright © 2009-2020 The Bitcoin Core developers, 2014-2020 The Dash Core developers, 2015-2020 The PIVX Core developers</string>

<key>CFBundleShortVersionString</key>
<string>4.0.0</string>

<key>CFBundleVersion</key>
<string>4.0.0</string>

<key>CFBundleSignature</key>
<string>????</string>

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

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

<key>LSHasLocalizedDisplayName</key>
<true/>

<key>CFBundleIdentifier</key>
<string>io.pivx.Pivx-Qt</string>

<key>CFBundleURLTypes</key>
<array>
<dict>
<key>CFBundleTypeRole</key>
<string>Editor</string>
<key>CFBundleURLName</key>
<string>io.pivx.PivxPayment</string>
<key>CFBundleURLSchemes</key>
<array>
<string>pivx</string>
</array>
</dict>
</array>

<key>UTExportedTypeDeclarations</key>
<array>
<dict>
<key>UTTypeIdentifier</key>
<string>io.pivx.paymentrequest</string>
<key>UTTypeDescription</key>
<string>Pivx payment request</string>
<key>UTTypeConformsTo</key>
<array>
<string>public.data</string>
</array>
<key>UTTypeTagSpecification</key>
<dict>
<key>public.mime-type</key>
<string>application/x-pivx-payment-request</string>
<key>public.filename-extension</key>
<array>
<string>pivxpaymentrequest</string>
</array>
</dict>
</dict>
</array>

<key>CFBundleDocumentTypes</key>
<array>
<dict>
<key>CFBundleTypeRole</key>
<string>Editor</string>
<key>LSItemContentTypes</key>
<array>
<string>io.pivx.paymentrequest</string>
</array>
<key>LSHandlerRank</key>
<string>Owner</string>
</dict>
</array>

<key>NSPrincipalClass</key>
<string>NSApplication</string>

<key>NSHighResolutionCapable</key>
<string>True</string>

<key>LSAppNapIsDisabled</key>
<string>True</string>

<key>NSRequiresAquaSystemAppearance</key>
<string>True</string>

<key>LSApplicationCategoryType</key>
<string>public.app-category.finance</string>
</dict>
</plist>
Binary file added PIVX-Qt.app/Contents/MacOS/PIVX-Qt
Binary file not shown.
1 change: 1 addition & 0 deletions PIVX-Qt.app/Contents/PkgInfo
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
APPL????
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{ CFBundleDisplayName = "Rapids"; CFBundleName = "Rapids"; }
Binary file added PIVX-Qt.app/Contents/Resources/bitcoin.icns
Binary file not shown.
Empty file.
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
Loading

0 comments on commit 06add8f

Please sign in to comment.