Skip to content

Commit

Permalink
Package: Restore run-servo script on MacOS
Browse files Browse the repository at this point in the history
  • Loading branch information
UK992 committed Jan 6, 2017
1 parent 7048a2f commit c697ae4
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Info.plist
Expand Up @@ -3,7 +3,7 @@
<plist version="1.0">
<dict>
<key>CFBundleExecutable</key>
<string>servo</string>
<string>run-servo</string>
<key>CFBundleGetInfoString</key>
<string>Servo</string>
<key>CFBundleIconFile</key>
Expand Down
10 changes: 10 additions & 0 deletions python/servo/package_commands.py
Expand Up @@ -246,6 +246,16 @@ def package(self, release=False, dev=False, android=None, debug=False, debugger=
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")
Expand Down
1 change: 0 additions & 1 deletion resources/package-prefs.json
Expand Up @@ -3,6 +3,5 @@
"dom.mozbrowser.enabled": true,
"shell.builtin-key-shortcuts.enabled": false,
"os:windows,os:linux;shell.homepage": "browserhtml/index.html",
"os:macosx;shell.homepage": "../Resources/browserhtml/index.html",
"os:macosx;shell.native-titlebar.enabled": false
}

0 comments on commit c697ae4

Please sign in to comment.