diff options
author | UK992 <urbankrajnc92@gmail.com> | 2017-01-06 03:28:59 +0100 |
---|---|---|
committer | UK992 <urbankrajnc92@gmail.com> | 2017-01-06 03:30:53 +0100 |
commit | c697ae46267fc60fff66ffb19d80dc88c89add3d (patch) | |
tree | d11fd8acffbda4bee31f9a92e1fe16d10f8ca2d9 /python | |
parent | 7048a2f81d4f6af77f8fe73752f34bc0eeed567a (diff) | |
download | servo-c697ae46267fc60fff66ffb19d80dc88c89add3d.tar.gz servo-c697ae46267fc60fff66ffb19d80dc88c89add3d.zip |
Package: Restore `run-servo` script on MacOS
Diffstat (limited to 'python')
-rw-r--r-- | python/servo/package_commands.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/python/servo/package_commands.py b/python/servo/package_commands.py index 33208434959..1da21d24a45 100644 --- a/python/servo/package_commands.py +++ b/python/servo/package_commands.py @@ -246,6 +246,16 @@ class PackageCommands(CommandBase): credits_file.write(template.render(version=version)) delete(template_path) + print("Writing run-servo") + bhtml_path = path.join('${0%/*}', '..', 'Resources', 'browserhtml', 'index.html') + runservo = os.open( + path.join(content_dir, 'run-servo'), + os.O_WRONLY | os.O_CREAT, + int("0755", 8) + ) + os.write(runservo, '#!/bin/bash\nexec ${0%/*}/servo ' + bhtml_path) + os.close(runservo) + print("Creating dmg") os.symlink('/Applications', path.join(dir_to_dmg, 'Applications')) dmg_path = path.join(target_dir, "servo-tech-demo.dmg") |