Skip to content

Commit c697ae4

Browse files
committed
Package: Restore run-servo script on MacOS
1 parent 7048a2f commit c697ae4

File tree

3 files changed

+11
-2
lines changed

3 files changed

+11
-2
lines changed

Info.plist

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<plist version="1.0">
44
<dict>
55
<key>CFBundleExecutable</key>
6-
<string>servo</string>
6+
<string>run-servo</string>
77
<key>CFBundleGetInfoString</key>
88
<string>Servo</string>
99
<key>CFBundleIconFile</key>

python/servo/package_commands.py

+10
Original file line numberDiff line numberDiff line change
@@ -246,6 +246,16 @@ def package(self, release=False, dev=False, android=None, debug=False, debugger=
246246
credits_file.write(template.render(version=version))
247247
delete(template_path)
248248

249+
print("Writing run-servo")
250+
bhtml_path = path.join('${0%/*}', '..', 'Resources', 'browserhtml', 'index.html')
251+
runservo = os.open(
252+
path.join(content_dir, 'run-servo'),
253+
os.O_WRONLY | os.O_CREAT,
254+
int("0755", 8)
255+
)
256+
os.write(runservo, '#!/bin/bash\nexec ${0%/*}/servo ' + bhtml_path)
257+
os.close(runservo)
258+
249259
print("Creating dmg")
250260
os.symlink('/Applications', path.join(dir_to_dmg, 'Applications'))
251261
dmg_path = path.join(target_dir, "servo-tech-demo.dmg")

resources/package-prefs.json

-1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,5 @@
33
"dom.mozbrowser.enabled": true,
44
"shell.builtin-key-shortcuts.enabled": false,
55
"os:windows,os:linux;shell.homepage": "browserhtml/index.html",
6-
"os:macosx;shell.homepage": "../Resources/browserhtml/index.html",
76
"os:macosx;shell.native-titlebar.enabled": false
87
}

0 commit comments

Comments
 (0)