File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -393,13 +393,15 @@ if __name__ == "__main__":
393
393
exit (1 )
394
394
395
395
foundapps = []
396
+ copy_app = False
396
397
397
398
# if item is an app, just pass it on
398
399
if item_extension == 'app' :
399
400
if not os .path .exists (item_path ):
400
401
print "This does not seem to be an Application!"
401
402
exit (1 )
402
403
foundapps .append (item_path )
404
+ copy_app = True
403
405
404
406
dmgvolumepaths = []
405
407
tmp_path = None
@@ -465,10 +467,14 @@ if __name__ == "__main__":
465
467
466
468
logger ("Found application: %s" % foundapps [0 ], 1 )
467
469
468
- # copy found app to payload folder
470
+ # copy or move found app to payload folder
469
471
app_name = os .path .basename (foundapps [0 ])
470
472
app_path = os .path .join (payload_path , app_name )
471
- shutil .copytree (foundapps [0 ], app_path , symlinks = True )
473
+ if copy_app :
474
+ shutil .copytree (foundapps [0 ], app_path , symlinks = True )
475
+ else :
476
+ shutil .move (foundapps [0 ], app_path )
477
+
472
478
473
479
# extract version and other metadata
474
480
(app_name , app_identifier , app_version ) = appNameAndVersion (app_path )
You can’t perform that action at this time.
0 commit comments