diff --git a/Info.plist b/Info.plist index ded92bf0267..a3136514d3a 100644 --- a/Info.plist +++ b/Info.plist @@ -3,7 +3,7 @@ CFBundleExecutable - servo + run-servo CFBundleGetInfoString Servo CFBundleIconFile 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") diff --git a/resources/package-prefs.json b/resources/package-prefs.json index 2ae926a79f6..b68db95d663 100644 --- a/resources/package-prefs.json +++ b/resources/package-prefs.json @@ -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 }