@@ -156,7 +156,7 @@ def writePlistToString(plistObject):
156156#
157157
158158
159- quickpkg_version = '0.8.1 '
159+ quickpkg_version = '0.9 '
160160supported_extensions = ['dmg' , 'app' , 'zip' , 'xip' ]
161161
162162
@@ -346,6 +346,8 @@ if __name__ == "__main__":
346346 scripts_group .add_argument ('--preinstall' , '--pre' , help = "path to the preinstall script" )
347347 scripts_group .add_argument ('--postinstall' , '--post' , help = "path to the postinstall script" )
348348
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' )
349351 parser .add_argument ('--ownership' , choices = ['recommended' , 'preserve' , 'preserve-other' ],
350352 help = "will be passed through to pkgbuild" )
351353 parser .add_argument ('--output' , '--out' , '-o' ,
@@ -489,7 +491,7 @@ if __name__ == "__main__":
489491 "--root" , payload_path ,
490492 "--identifier" , app_identifier ,
491493 "--version" , app_version ,
492- "--install-location" , "/Applications" ,
494+ "--install-location" , args . install_location ,
493495 component_plist ]
494496 result = cmdexec (analyzecmd )
495497
@@ -528,7 +530,7 @@ if __name__ == "__main__":
528530 "--component-plist" , component_plist ,
529531 "--identifier" , app_identifier ,
530532 "--version" , app_version ,
531- "--install-location" , "/Applications" ,
533+ "--install-location" , args . install_location ,
532534 pkg_path ]
533535
534536 if args .scripts and not os .path .exists (args .scripts ):
0 commit comments