mirror of
https://github.com/servo/servo.git
synced 2025-07-23 15:23:42 +01:00
Delete any existing dmg before recreating it.
This commit is contained in:
parent
325713af38
commit
3dd74bb177
1 changed files with 4 additions and 0 deletions
|
@ -256,6 +256,10 @@ class PackageCommands(CommandBase):
|
|||
os.symlink('/Applications', path.join(dir_to_dmg, 'Applications'))
|
||||
dmg_path = path.join(target_dir, "servo-tech-demo.dmg")
|
||||
|
||||
if path.exists(dmg_path):
|
||||
print("Deleting existing dmg")
|
||||
os.remove(dmg_path)
|
||||
|
||||
try:
|
||||
subprocess.check_call(['hdiutil', 'create', '-volname', 'Servo', dmg_path, '-srcfolder', dir_to_dmg])
|
||||
except subprocess.CalledProcessError as e:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue