File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -523,6 +523,7 @@ verbose = config.verbose
523
523
# ------------------------------------------------
524
524
525
525
app_bundle = config .app_bundle [0 ]
526
+ appname = config .appname [0 ]
526
527
527
528
if not os .path .exists (app_bundle ):
528
529
sys .stderr .write ("Error: Could not find app bundle \" {}\" \n " .format (app_bundle ))
@@ -531,13 +532,12 @@ if not os.path.exists(app_bundle):
531
532
# ------------------------------------------------
532
533
533
534
if os .path .exists ("dist" ):
534
- print ("+ Removing old dist folder +" )
535
-
535
+ print ("+ Removing existing dist folder +" )
536
536
shutil .rmtree ("dist" )
537
537
538
- # ------------------------------------------------
539
-
540
- appname = config . appname [ 0 ]
538
+ if os . path . exists ( appname + ".dmg" ):
539
+ print ( "+ Removing existing DMG +" )
540
+ os . unlink ( appname + ".dmg" )
541
541
542
542
# ------------------------------------------------
543
543
You can’t perform that action at this time.
0 commit comments