Skip to content

Commit

Permalink
build: add -zip option to macdeployqtplus
Browse files Browse the repository at this point in the history
This zips the app bundle in /dist.
  • Loading branch information
fanquake authored and hebasto committed Sep 15, 2023
1 parent f608a40 commit c38561d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions contrib/macdeploy/macdeployqtplus
Expand Up @@ -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()

Expand Down Expand Up @@ -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)

0 comments on commit c38561d

Please sign in to comment.