Skip to content

Commit c38561d

Browse files
fanquakehebasto
authored andcommitted
build: add -zip option to macdeployqtplus
This zips the app bundle in /dist.
1 parent f608a40 commit c38561d

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

contrib/macdeploy/macdeployqtplus

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -397,6 +397,7 @@ ap.add_argument("-no-plugins", dest="plugins", action="store_false", default=Tru
397397
ap.add_argument("-no-strip", dest="strip", action="store_false", default=True, help="don't run 'strip' on the binaries")
398398
ap.add_argument("-dmg", nargs="?", const="", metavar="basename", help="create a .dmg disk image")
399399
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.")
400+
ap.add_argument("-zip", nargs="?", const="", metavar="zip", help="create a .zip containing the app bundle")
400401

401402
config = ap.parse_args()
402403

@@ -593,6 +594,11 @@ if config.dmg is not None:
593594

594595
# ------------------------------------------------
595596

597+
if config.zip is not None:
598+
shutil.make_archive('{}'.format(appname), format='zip', root_dir='dist', base_dir='Bitcoin-Qt.app')
599+
600+
# ------------------------------------------------
601+
596602
print("+ Done +")
597603

598604
sys.exit(0)

0 commit comments

Comments
 (0)