Skip to content

Commit 4312410

Browse files
fanquakeFuzzbawls
authored andcommitted
macdeploy: remove codesigning argument
1 parent c2ee635 commit 4312410

File tree

1 file changed

+1
-15
lines changed

1 file changed

+1
-15
lines changed

contrib/macdeploy/macdeployqtplus

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -515,17 +515,12 @@ ap = ArgumentParser(description="""Improved version of macdeployqt.
515515
Outputs a ready-to-deploy app in a folder "dist" and optionally wraps it in a .dmg file.
516516
Note, that the "dist" folder will be deleted before deploying on each run.
517517
518-
Optionally, Qt translation files (.qm) and additional resources can be added to the bundle.
519-
520-
Also optionally signs the .app bundle; set the CODESIGNARGS environment variable to pass arguments
521-
to the codesign tool.
522-
E.g. CODESIGNARGS='--sign "Developer ID Application: ..." --keychain /encrypted/foo.keychain'""")
518+
Optionally, Qt translation files (.qm) and additional resources can be added to the bundle.""")
523519

524520
ap.add_argument("app_bundle", nargs=1, metavar="app-bundle", help="application bundle to be deployed")
525521
ap.add_argument("-verbose", type=int, nargs=1, default=[1], metavar="<0-3>", help="0 = no output, 1 = error/warning (default), 2 = normal, 3 = debug")
526522
ap.add_argument("-no-plugins", dest="plugins", action="store_false", default=True, help="skip plugin deployment")
527523
ap.add_argument("-no-strip", dest="strip", action="store_false", default=True, help="don't run 'strip' on the binaries")
528-
ap.add_argument("-sign", dest="sign", action="store_true", default=False, help="sign .app bundle with codesign tool")
529524
ap.add_argument("-dmg", nargs="?", const="", metavar="basename", help="create a .dmg disk image; if basename is not specified, a camel-cased version of the app name is used")
530525
ap.add_argument("-fancy", nargs=1, metavar="plist", default=[], help="make a fancy looking disk image using the given plist file with instructions; requires -dmg to work")
531526
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.")
@@ -719,15 +714,6 @@ for p in config.add_resources:
719714

720715
# ------------------------------------------------
721716

722-
if config.sign and 'CODESIGNARGS' not in os.environ:
723-
print("You must set the CODESIGNARGS environment variable. Skipping signing.")
724-
elif config.sign:
725-
if verbose >= 1:
726-
print("Code-signing app bundle {}".format(target))
727-
subprocess.check_call("codesign --force {} {}".format(os.environ['CODESIGNARGS'], target), shell=True)
728-
729-
# ------------------------------------------------
730-
731717
if config.dmg is not None:
732718

733719
def runHDIUtil(verb: str, image_basename: str, **kwargs) -> int:

0 commit comments

Comments
 (0)