Virgil Dupras committed c3a0559

Fixed cocoa packaging (it targeted the wrong path) and added code signing support.

Comments (0)

Files changed (1)

 # which should be included with this package. The terms are also available at 
-import sys
 import os
 import os.path as op
 import compileall
 import shutil
 import json
+from argparse import ArgumentParser
-from import (build_dmg, copy_packages, build_debian_changelog, copy_qt_plugins,
-    print_and_do, get_module_version)
+from import (copy_packages, build_debian_changelog, copy_qt_plugins, print_and_do,
+    get_module_version, setup_package_argparser, package_cocoa_app_in_dmg)
 from hscommon.plat import ISLINUX, ISWINDOWS
+def parse_args():
+    parser = ArgumentParser()
+    setup_package_argparser(parser)
+    return parser.parse_args()
 def package_windows(dev):
     from cx_Freeze import Freezer, Executable
     app_version = get_module_version('core')
 def main():
+    args = parse_args()
     conf = json.load(open('conf.json'))
     ui = conf['ui']
     dev = conf['dev']
     print("Packaging PdfMasher with UI {0}".format(ui))
     if ui == 'cocoa':
-        build_dmg('cocoa/build/release/', '.')
+        package_cocoa_app_in_dmg('cocoa/', '.', args)
     elif ui == 'qt':
         if ISWINDOWS: