@@ -156,7 +156,7 @@ def writePlistToString(plistObject):
156
156
#
157
157
158
158
159
- quickpkg_version = '0.8.1 '
159
+ quickpkg_version = '0.9 '
160
160
supported_extensions = ['dmg' , 'app' , 'zip' , 'xip' ]
161
161
162
162
@@ -346,6 +346,8 @@ if __name__ == "__main__":
346
346
scripts_group .add_argument ('--preinstall' , '--pre' , help = "path to the preinstall script" )
347
347
scripts_group .add_argument ('--postinstall' , '--post' , help = "path to the postinstall script" )
348
348
349
+ parser .add_argument ('--install-location' , dest = 'install_location' , help = 'sets the install-location of the resulting pkg, default is "/Applications"' )
350
+ parser .set_defaults (install_location = '/Applications' )
349
351
parser .add_argument ('--ownership' , choices = ['recommended' , 'preserve' , 'preserve-other' ],
350
352
help = "will be passed through to pkgbuild" )
351
353
parser .add_argument ('--output' , '--out' , '-o' ,
@@ -489,7 +491,7 @@ if __name__ == "__main__":
489
491
"--root" , payload_path ,
490
492
"--identifier" , app_identifier ,
491
493
"--version" , app_version ,
492
- "--install-location" , "/Applications" ,
494
+ "--install-location" , args . install_location ,
493
495
component_plist ]
494
496
result = cmdexec (analyzecmd )
495
497
@@ -528,7 +530,7 @@ if __name__ == "__main__":
528
530
"--component-plist" , component_plist ,
529
531
"--identifier" , app_identifier ,
530
532
"--version" , app_version ,
531
- "--install-location" , "/Applications" ,
533
+ "--install-location" , args . install_location ,
532
534
pkg_path ]
533
535
534
536
if args .scripts and not os .path .exists (args .scripts ):
0 commit comments