Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upCreate Servo.app and dmg on mac package #11899
Conversation
| '--pref', 'dom.forcetouch.enabled', | ||
| '--pref', 'shell.builtin-key-shortcuts.enabled=false', | ||
| '--resources-path', '${0%/*}/../Resources', | ||
| path.join('${0%/*}/../Resources', browserhtml_path.split('/')[-1], 'out', 'index.html')] |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
cbrewster
Jun 28, 2016
Author
Member
Wouldn't this change the prefs for development runs aswell? or should we have a separate prefs.json just for packaging?
This comment has been minimized.
This comment has been minimized.
paulrouget
Jun 28, 2016
Contributor
A separate json file maybe? In that json file, you could force webrender, the -b option, set all the other prefs and also add the location of the html page to load (shell.homepage).
Also, as for the resources path, we probably want to fix resources_dir_path() to return the ../Resources directory.
With all of that, you wouldn't need a special script, but just run ./servo.
I'm not sure what is best (a custom script or have a separate json file), but I think at least we should fix resources_dir_path().
This comment has been minimized.
This comment has been minimized.
cbrewster
Jun 28, 2016
Author
Member
I fixed resources_dir_path() just by checking every directory backwards until it finds a resource folder. I just cannot figure out how to get the location of the bhtml index for shell.homepage. I have the index in Servo.app/Contents/Resources/bhtml/out.index.html but I cannot figure out what that path needs to be relative to.
This comment has been minimized.
This comment has been minimized.
cbrewster
Jun 28, 2016
Author
Member
We might have to keep the script just to get shell.homepage to work. Other than that, the prefs can be kept in a separate json.
Otherwise, this lgtm. |
Fix resource lookup, add package prefs fix tidy issues
|
@bors-servo r=larsbergstrom |
|
|
Create Servo.app and dmg on mac package <!-- Please describe your changes on the following line: --> This creates Servo.app and puts it in a dmg along with a symlink to `/Applications`. --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: --> - [X] `./mach build -d` does not report any errors - [X] `./mach test-tidy` does not report any errors - [ ] These changes fix #__ (github issue number if applicable). <!-- Either: --> - [ ] There are tests for these changes OR - [X] These changes do not require tests because creating packager <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/11899) <!-- Reviewable:end -->
|
After testing on some other people's macs it look like |
|
|
cbrewster commentedJun 28, 2016
•
edited by larsbergstrom
This creates Servo.app and puts it in a dmg along with a symlink to
/Applications../mach build -ddoes not report any errors./mach test-tidydoes not report any errorsThis change is