Skip to content

Commit

Permalink
Package: Set shell.homepage to browserhtml
Browse files Browse the repository at this point in the history
Closes #12154
  • Loading branch information
UK992 committed Dec 29, 2016
1 parent 456900b commit 01c7ac7
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 20 deletions.
2 changes: 1 addition & 1 deletion Info.plist
Expand Up @@ -3,7 +3,7 @@
<plist version="1.0">
<dict>
<key>CFBundleExecutable</key>
<string>run-servo</string>
<string>servo</string>
<key>CFBundleGetInfoString</key>
<string>Servo</string>
<key>CFBundleIconFile</key>
Expand Down
18 changes: 0 additions & 18 deletions python/servo/package_commands.py
Expand Up @@ -221,16 +221,6 @@ 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(dir_to_build, "servo-tech-demo.dmg")
Expand Down Expand Up @@ -324,14 +314,6 @@ def package(self, release=False, dev=False, android=None, debug=False, debugger=

change_prefs(dir_to_resources, "linux")

print("Writing runservo.sh")
servo_args = ['-b',
path.join('./browserhtml', 'index.html')]

runservo = os.open(path.join(dir_to_temp, 'runservo.sh'), os.O_WRONLY | os.O_CREAT, int("0755", 8))
os.write(runservo, "#!/usr/bin/env sh\n./servo " + ' '.join(servo_args))
os.close(runservo)

print("Creating tarball")
tar_path = path.join(path.dirname(binary_path), 'servo-tech-demo.tar.gz')

Expand Down
2 changes: 2 additions & 0 deletions resources/package-prefs.json
Expand Up @@ -2,5 +2,7 @@
"dom.forcetouch.enabled": true,
"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
}
1 change: 0 additions & 1 deletion support/windows/Servo.wxs.mako
Expand Up @@ -38,7 +38,6 @@
WorkingDirectory="INSTALLDIR"
Icon="Servo.ico"
IconIndex="0"
Arguments="browserhtml\index.html"
Advertise="yes"/>
</File>
<File Id="ServoManifest"
Expand Down

0 comments on commit 01c7ac7

Please sign in to comment.