mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
Package: Restore run-servo
script on MacOS
This commit is contained in:
parent
7048a2f81d
commit
c697ae4626
3 changed files with 11 additions and 2 deletions
|
@ -3,7 +3,7 @@
|
||||||
<plist version="1.0">
|
<plist version="1.0">
|
||||||
<dict>
|
<dict>
|
||||||
<key>CFBundleExecutable</key>
|
<key>CFBundleExecutable</key>
|
||||||
<string>servo</string>
|
<string>run-servo</string>
|
||||||
<key>CFBundleGetInfoString</key>
|
<key>CFBundleGetInfoString</key>
|
||||||
<string>Servo</string>
|
<string>Servo</string>
|
||||||
<key>CFBundleIconFile</key>
|
<key>CFBundleIconFile</key>
|
||||||
|
|
|
@ -246,6 +246,16 @@ class PackageCommands(CommandBase):
|
||||||
credits_file.write(template.render(version=version))
|
credits_file.write(template.render(version=version))
|
||||||
delete(template_path)
|
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")
|
print("Creating dmg")
|
||||||
os.symlink('/Applications', path.join(dir_to_dmg, 'Applications'))
|
os.symlink('/Applications', path.join(dir_to_dmg, 'Applications'))
|
||||||
dmg_path = path.join(target_dir, "servo-tech-demo.dmg")
|
dmg_path = path.join(target_dir, "servo-tech-demo.dmg")
|
||||||
|
|
|
@ -3,6 +3,5 @@
|
||||||
"dom.mozbrowser.enabled": true,
|
"dom.mozbrowser.enabled": true,
|
||||||
"shell.builtin-key-shortcuts.enabled": false,
|
"shell.builtin-key-shortcuts.enabled": false,
|
||||||
"os:windows,os:linux;shell.homepage": "browserhtml/index.html",
|
"os:windows,os:linux;shell.homepage": "browserhtml/index.html",
|
||||||
"os:macosx;shell.homepage": "../Resources/browserhtml/index.html",
|
|
||||||
"os:macosx;shell.native-titlebar.enabled": false
|
"os:macosx;shell.native-titlebar.enabled": false
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue