mirror of
https://github.com/Retropex/bitcoin.git
synced 2025-05-12 19:20:42 +02: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]
|
app_bundle = config.app_bundle[0]
|
||||||
|
appname = config.appname[0]
|
||||||
|
|
||||||
if not os.path.exists(app_bundle):
|
if not os.path.exists(app_bundle):
|
||||||
sys.stderr.write("Error: Could not find app bundle \"{}\"\n".format(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"):
|
if os.path.exists("dist"):
|
||||||
print("+ Removing old dist folder +")
|
print("+ Removing existing dist folder +")
|
||||||
|
|
||||||
shutil.rmtree("dist")
|
shutil.rmtree("dist")
|
||||||
|
|
||||||
# ------------------------------------------------
|
if os.path.exists(appname + ".dmg"):
|
||||||
|
print("+ Removing existing DMG +")
|
||||||
appname = config.appname[0]
|
os.unlink(appname + ".dmg")
|
||||||
|
|
||||||
# ------------------------------------------------
|
# ------------------------------------------------
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user