aboutsummaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorfanquake <fanquake@gmail.com>2020-05-26 09:11:05 +0800
committerHennadii Stepanov <32963518+hebasto@users.noreply.github.com>2023-09-15 13:47:49 +0100
commitc38561d6b1de954b712a92cb8a198ed42d73caea (patch)
tree404f09153988e07e5dcbc725edac6dec4d50b49a /contrib
parentf608a409f7591b4f5cf170898bee58b9d9dcf1b6 (diff)
build: add -zip option to macdeployqtplus
This zips the app bundle in /dist.
Diffstat (limited to 'contrib')
-rwxr-xr-xcontrib/macdeploy/macdeployqtplus6
1 files changed, 6 insertions, 0 deletions
diff --git a/contrib/macdeploy/macdeployqtplus b/contrib/macdeploy/macdeployqtplus
index f8677ba7b8..0c4ca86b87 100755
--- a/contrib/macdeploy/macdeployqtplus
+++ b/contrib/macdeploy/macdeployqtplus
@@ -397,6 +397,7 @@ ap.add_argument("-no-plugins", dest="plugins", action="store_false", default=Tru
ap.add_argument("-no-strip", dest="strip", action="store_false", default=True, help="don't run 'strip' on the binaries")
ap.add_argument("-dmg", nargs="?", const="", metavar="basename", help="create a .dmg disk image")
ap.add_argument("-translations-dir", nargs=1, metavar="path", default=None, help="Path to Qt's translations. Base translations will automatically be added to the bundle's resources.")
+ap.add_argument("-zip", nargs="?", const="", metavar="zip", help="create a .zip containing the app bundle")
config = ap.parse_args()
@@ -593,6 +594,11 @@ if config.dmg is not None:
# ------------------------------------------------
+if config.zip is not None:
+ shutil.make_archive('{}'.format(appname), format='zip', root_dir='dist', base_dir='Bitcoin-Qt.app')
+
+# ------------------------------------------------
+
print("+ Done +")
sys.exit(0)