mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-03-24 08:41:59 +01:00
macdeploy: remove existing Bitcoin-Core.dmg if present
This commit is contained in:
parent
ccb0325b1b
commit
adaa26202b
@ -523,6 +523,7 @@ verbose = config.verbose
|
||||
# ------------------------------------------------
|
||||
|
||||
app_bundle = config.app_bundle[0]
|
||||
appname = config.appname[0]
|
||||
|
||||
if not os.path.exists(app_bundle):
|
||||
sys.stderr.write("Error: Could not find app bundle \"{}\"\n".format(app_bundle))
|
||||
@ -531,13 +532,12 @@ if not os.path.exists(app_bundle):
|
||||
# ------------------------------------------------
|
||||
|
||||
if os.path.exists("dist"):
|
||||
print("+ Removing old dist folder +")
|
||||
|
||||
print("+ Removing existing dist folder +")
|
||||
shutil.rmtree("dist")
|
||||
|
||||
# ------------------------------------------------
|
||||
|
||||
appname = config.appname[0]
|
||||
if os.path.exists(appname + ".dmg"):
|
||||
print("+ Removing existing DMG +")
|
||||
os.unlink(appname + ".dmg")
|
||||
|
||||
# ------------------------------------------------
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user