@@ -163,7 +163,6 @@ def appNameAndVersion(app_path):
163
163
app_name = info_plist .get ("CFBundleDisplayName" )
164
164
if app_name is None :
165
165
(app_name , app_ext ) = os .path .splitext (os .path .basename (app_path ))
166
- #app_name = info_plist.get("CFBundleExecutable")
167
166
app_identifier = info_plist .get ("CFBundleIdentifier" )
168
167
app_version = info_plist .get ("CFBundleShortVersionString" )
169
168
if app_version is None :
@@ -195,10 +194,10 @@ if __name__ == "__main__":
195
194
parser .add_argument ('item_path' , help = "path to the installer item" )
196
195
197
196
scripts_group = parser .add_argument_group ('Installation Scripts' ,
198
- '''These options will set the installation scripts. You pass an entire folder of scripts,
199
- just like the option of `pkgbuild` or you can give a file for the preinstall or postinstall
200
- scripts respectively. If you give both the --scripts and either one or both of --preinstall
201
- and --postinstall, quickpkg will attempt to merge, but throw an error if it cannot.''' )
197
+ '''These options will set the installation scripts. You pass an entire folder of scripts,
198
+ just like the option of `pkgbuild` or you can give a file for the preinstall or postinstall
199
+ scripts respectively. If you give both the --scripts and either one or both of --preinstall
200
+ and --postinstall, quickpkg will attempt to merge, but throw an error if it cannot.''' )
202
201
scripts_group .add_argument ('--scripts' , help = "path to a folder with scripts" )
203
202
scripts_group .add_argument ('--preinstall' , '--pre' , help = "path to the preinstall script" )
204
203
scripts_group .add_argument ('--postinstall' , '--post' , help = "path to the postinstall script" )
@@ -207,9 +206,9 @@ if __name__ == "__main__":
207
206
help = "will be passed through to pkgbuild" )
208
207
parser .add_argument ('--output' , '--out' , '-o' ,
209
208
help = '''path where the package file will be created. If you give the full filename
210
- then you can use '{name}', '{version}' and '{identifier}' as placeholders.
211
- If this is a directory, then the
212
- package will be created with the default filename {name}-{version}.pkg''' )
209
+ then you can use '{name}', '{version}' and '{identifier}' as placeholders.
210
+ If this is a directory, then the
211
+ package will be created with the default filename {name}-{version}.pkg''' )
213
212
214
213
parser .add_argument ("-v" , "--verbosity" , action = "count" , default = 0 , help = "controls amount of logging output (max -vvv)" )
215
214
parser .add_argument ('--version' , help = 'prints the version' , action = 'version' , version = quickpkg_version )
@@ -298,7 +297,7 @@ if __name__ == "__main__":
298
297
else :
299
298
pkg_path = pkg_name
300
299
nospace_app_name = app_name .replace (' ' , '' ) # remove spaces
301
- pkg_path = pkg_path .format (name = nospace_app_name , version = app_version , identifier = app_identifier )
300
+ pkg_path = pkg_path .format (name = nospace_app_name , version = app_version , identifier = app_identifier )
302
301
303
302
if not pkg_path .endswith ('pkg' ):
304
303
pkg_path += '.pkg'
@@ -314,7 +313,7 @@ if __name__ == "__main__":
314
313
if args .scripts and not os .path .exists (args .scripts ):
315
314
print "scripts folder %s does not exist!" % args .scripts
316
315
cleanup_and_exit (1 )
317
-
316
+
318
317
if args .postinstall or args .preinstall :
319
318
tmp_scripts_path = tempfile .mkdtemp ()
320
319
if args .scripts :
@@ -354,7 +353,7 @@ if __name__ == "__main__":
354
353
elif args .scripts :
355
354
logger ("scripts path: %s" % args .scripts , 1 )
356
355
pkgcmd .extend (["--scripts" , args .scripts ])
357
-
356
+
358
357
if args .ownership :
359
358
pkgcmd .extend (["--ownership" , args .ownership ])
360
359
0 commit comments