Merge pull request #560 from Baccount/eject-DMG

Eject dmg
This commit is contained in:
Miguel Jacq 2018-01-21 13:37:03 +11:00 committed by GitHub
commit a068bf4518
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -88,8 +88,8 @@ def main():
shutil.copyfile(os.path.join(dmg_tor_path, 'MacOS', 'Tor', 'PluggableTransports', 'obfs4proxy'), os.path.join(dist_path, 'Resources', 'Tor', 'obfs4proxy'))
os.chmod(os.path.join(dist_path, 'Resources', 'Tor', 'obfs4proxy'), 0o755)
# Unmount dmg
subprocess.call(['diskutil', 'unmount', '/Volumes/Tor Browser'])
# Eject dmg
subprocess.call(['diskutil', 'eject', '/Volumes/Tor Browser'])
if __name__ == '__main__':
main()