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 upWindows support for the --nightly | -n flag to mach run commands. #20122
Conversation
highfive
commented
Feb 26, 2018
|
Thanks for the pull request, and welcome! The Servo team is excited to review your changes, and you should hear from @pcwalton (or someone else) soon. |
highfive
commented
Feb 26, 2018
|
Heads up! This PR modifies the following files:
|
336a10b
to
b97aa8e
|
I guess we should merge #19947, and then go to work on this. The two code are overlaid. |
|
Yeah definitely ! :) |
|
This looks like a good improvement on the original PR. Thanks! |
| print("Extracting to {} ...".format(destination_folder)) | ||
| if is_windows(): | ||
| command = 'msiexec /a {} /qn TARGETDIR={}' \ | ||
| .format(os.path.join(nightlies_folder, destination_file), destination_folder) |
This comment has been minimized.
This comment has been minimized.
jdm
Mar 5, 2018
Member
Let's use this formatting instead:
command = 'msiexec /a {} /qn TARGETDIR={}'.format(
path.join(...), destination_folder)| bin_folder = path.join(destination_folder, "servo") | ||
| if is_windows(): | ||
| bin_folder = path.join(destination_folder, "PFiles", "Mozilla research", "Servo Tech Demo") | ||
| print(path.join(bin_folder, "servo{}".format(BIN_SUFFIX))) |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
o0Ignition0o
Mar 8, 2018
Author
Contributor
I think I could extract the .msi archive to %temp% and just keep the .exe file instead :)
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
o0Ignition0o
Mar 9, 2018
Author
Contributor
Oh I see, no it's debug code I use (I seem to get the right path but when I try to ./mach run with a path to the executable it just won't ^^
I guess as soon as I figure it out I'll remove the WIP tag on the PR (Probably this weekend :))
|
|
b97aa8e
to
887fcf6
887fcf6
to
a132a9b
|
This should be reviewable now. The command to run would be
|
|
Is there a difference if you run a windows nightly since March 1? There was a two month period in which we broke nightlies on windows at startup. |
|
I got the same result as I ran
The window seems to open and closes instantly.
This is definitely related to my VM setup x) |
|
Let's go ahead and merge this. If anybody tests it in a non-VM environment they can let us know how it goes. |
|
|
Windows support for the --nightly | -n flag to mach run commands. <!-- Please describe your changes on the following line: --> Add windows support to the -n flag. --- Followup to #19947 , this PR will add windows support to the -n flag. This is part of step two for #19505 <!-- 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). The feature does not work just yet, I'm able to download and extract the archive, but it's not running the executable yet. @tigercosmos might be a good reviewer on this one :) <!-- Either: --> - [ ] There are tests for these changes OR - [X] These changes do not require tests because they're part of a ./mach command. <!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.--> <!-- 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="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/20122) <!-- Reviewable:end -->
|
|
./mach run -n on mac os. <!-- Please describe your changes on the following line: --> Add macos support to the -n flag. Followup to #20122 , this PR will add macos support to the -n flag. This is part of step two for #19505 --- <!-- 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 this mach command does not build anything <!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.--> <!-- 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="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/22387) <!-- Reviewable:end -->
o0Ignition0o commentedFeb 26, 2018
•
edited
Add windows support to the -n flag.
Followup to #19947 , this PR will add windows support to the -n flag.
This is part of step two for #19505
./mach build -ddoes not report any errors./mach test-tidydoes not report any errorsThe feature does not work just yet, I'm able to download and extract the archive, but it's not running the executable yet.
@tigercosmos might be a good reviewer on this one :)
This change is