Commit graph

101 commits

Author SHA1 Message Date
Josh Matthews
e62f98d100 Set the initial disk image size for mac packages.
Various stackoverflow answers suggest that setting an initial size can avoid errors while resizing the disk during the process of creating it.
2017-06-05 17:42:03 -04:00
Imanol Fernandez
04fb628d20 Make armv7-linux-androideabi default target on Android 2017-05-31 22:31:26 +02:00
Aneesh Agrawal
3cf15cc86d Shim subprocess.DEVNULL for Python 2
This was introduced in Python 3.3, so provide our own version.
2017-05-30 19:39:06 -04:00
Aneesh Agrawal
45c499d011 Fix ./mach upload-nightly macbrew 2017-05-30 14:27:27 -04:00
bors-servo
9468fae0d4 Auto merge of #16565 - aneeshusa:move-upload-nightly-script-to-python, r=metajack
Convert nightly upload script to Python

Now that MinGW and MSYS have been removed from the Windows builders,
bash is not available to run the previous upload_nightlies.sh script.
Convert the script to Python 2 for cross-platform support.
Additionally, switch to the `boto3` library for easy uploading
without needing to install `s3cmd`,
and move the code into mach for easy `boto3` installation
as the new `./mach upload-nightly` command.

Also, hard-code the paths to the packages instead of using
globs to look for them, as the paths are static.
(The paths used to contain timestamps,
but we now insert timestamps when uploading to S3
to improve reproducibility.)

<!-- Please describe your changes on the following line: -->

---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: -->
- [ ] `./mach build -d` does not report any errors
- [x] `./mach test-tidy` does not report any errors
- [x] These changes fix #16560 (github issue number if applicable).

<!-- Either: -->
- [ ] There are tests for these changes OR
- [x] These changes do not require tests because Buildbot will test them.

<!-- 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/16565)
<!-- Reviewable:end -->
2017-05-22 18:11:19 -05:00
Aneesh Agrawal
043f78db53 Move nightly upload script into Mach
Now that MinGW and MSYS have been removed from the Windows builders,
bash is not available to run the previous upload_nightlies.sh script.
Convert the script to Python 2 for cross-platform support.
Additionally, switch to the `boto3` library for easy uploading
without needing to install `s3cmd`,
and move the code into mach for easy `boto3` installation
as the new `./mach upload-nightly` command.

Also, hard-code the paths to the packages instead of using
globs to look for them, as the paths are static.
(The paths used to contain timestamps,
but we now insert timestamps when uploading to S3
to improve reproducibility.)
2017-05-20 14:50:04 -04:00
Imanol Fernandez
01228282cd Support for Android armv7 and aarch64 target triples 2017-05-08 17:28:59 +02:00
Imanol Fernandez
7a2a90959e Android life cycle improvements and Gradle integration 2017-04-21 18:24:10 +02:00
Aneesh Agrawal
b1824f7a05 Move delete function to util.py
This makes it easier to reuse in other places.
2017-04-18 09:30:41 -04:00
Aneesh Agrawal
0730888fbe Stop segfaulting at the end of mach bootstrap
`mach bootstrap` will finish succesfully,
but then segfault inside glibc while exiting.
It seems to have to do with the MarkupSafe library used by Mako;
delaying the Mako import from the top level to inside functions where it
is used avoids the problem.
(It seems to interact with the call to pip to install the Salt
requirements in the virtualenv, as commenting that pip call out
separately will also fix the segfault.)

Also, use the Mako installed in the Python virtualenv while running
packaging commands (instead of the one from the bundled zip file),
and cleanup imports in the package_commands.py file.
2017-04-17 20:44:23 -04:00
Aneesh Agrawal
022f0aa34a Remove more deprecated Windows GNU code/docs 2017-04-16 22:12:17 -04:00
Josh Matthews
3dd74bb177 Delete any existing dmg before recreating it. 2017-04-01 00:14:40 -04:00
ddh
e527c9a991 Update Hyper and OpenSSL 2017-03-31 16:32:21 +02:00
UK992
b6b96322c1 Remove freetype dependency on Windows 2017-02-06 02:28:54 +01:00
UK992
c697ae4626 Package: Restore run-servo script on MacOS 2017-01-06 03:30:53 +01:00
UK992
7048a2f81d Package: Create ZIP on Windows 2017-01-06 03:30:29 +01:00
Teodor Szente
48df976bcd Move get_browserhtml_path to command_base #14815
Remove unused import of find_dep_path_newest #14815

Move get_browserhtml_path top along with find_dep_path_newest #14815
2017-01-02 16:39:20 +02:00
UK992
fe7cb599a0 Package: Small cleanup 2016-12-29 19:21:18 +01:00
UK992
736559887b Package: Move Android packaging to target dir
Fixes #13800
2016-12-29 19:19:05 +01:00
UK992
01c7ac785b Package: Set shell.homepage to browserhtml
Closes #12154
2016-12-29 19:19:03 +01:00
UK992
456900b4ef Package: Simplify getting browserhtml path 2016-12-29 19:19:01 +01:00
UK992
7eb4d7a9a7 Package: Merge changed prefs from package-prefs.json to prefs.json 2016-12-29 19:18:57 +01:00
bors-servo
ced1199c61 Auto merge of #14531 - UK992:win32-installer, r=larsbergstrom
Various Windows installer fixes and improvements

r? @metajack or @larsbergstrom

---
- [X] `./mach build -d` does not report any errors
- [X] `./mach test-tidy` does not report any errors

<!-- 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/14531)
<!-- Reviewable:end -->
2016-12-12 13:07:25 -08:00
UK992
10cf2e1f39 Add Windows support for mach install 2016-12-10 02:04:41 +01:00
William Lee
6a7fb6cd2b Package macos/Linux builds under release/debug dirs
This commit updates the 'mach package' command to generate output
under the target/release and target/debug directories when run on
macOS and Linux.

etc/ci/upload_nightly.sh has also been updated to upload packages from
the release/debug directories.
2016-12-09 15:28:39 -05:00
William Lee
d4e986023a Cleanup path manipulations under macOS/Linux
Path manipulation has been changed from using '/' to using
os.path functions for packaging code for macOS and Linux targets.
2016-12-09 15:28:29 -05:00
Jake Goldsborough
d302cf23bc moving datetimestamping responsiblities from mach package
to CI upload, swaps semicolons for dashes
2016-11-03 23:02:48 -07:00
Aneesh Agrawal
972520ddc5 Fix path to browserhtml in Linux runservo.sh 2016-10-03 09:02:30 -04:00
bors-servo
7fbd35efab Auto merge of #12850 - Coder206:newFolderLinux, r=aneeshusa
New folder linux

<!-- Please describe your changes on the following line: -->

---
<!-- 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
- [x] These changes fix #11983 (github issue number if applicable).

- [x] There are tests for these changes (./mach package)

<!-- 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/12850)
<!-- Reviewable:end -->
2016-09-30 18:29:56 -05:00
Patrick Trottier
d672750ca4 Use a temp folder when packaging on Linux
The purpose of the code is to make a new temporary folder with the
necessary resources used to package Linux. Before this, the package
was built based on a modified target directory. By using a temporary
folder, it removes the need to rebuild Servo every time it gets
packaged for Linux.
2016-09-30 22:56:55 +00:00
Glenn Watson
dd4827d85f Update test expectations, remove webrender prefs/cmd line. 2016-09-28 18:42:30 +10:00
Attila Dusnoki
ccc66d0c32 WebBluetooth Android support 2016-09-06 12:48:04 +02:00
Connor Brewster
fe61124c15 Add servo version to mac about servo window. 2016-08-19 18:55:27 -05:00
Paul Rouget
c40a658e9c Revert "Enable multiprocess and sandbox"
This reverts commit 663f8530cf.
2016-08-15 03:44:46 +02:00
Paul Rouget
79812971f1 brew package 2016-08-09 05:48:27 +02:00
tsawada
eba39ab98a Fix flag compose in runservo.sh
s/-S--pref/-S --pref/
2016-08-06 10:15:41 -04:00
bors-servo
1086df67e0 Auto merge of #12244 - rev112:package-repro-pure, r=aneeshusa
Create .tar.gz package deterministically using Python's "tarfile"

<!-- Please describe your changes on the following line: -->
A development of #12108, creates a .tar.gz package using the `tarfile` and `gzip` modules, without external dependencies. Fixes #11981.
Also this fixes the issue when the existing `resources/` directory didn't allow to create a new package and failed with "File exists" error.

---
<!-- 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
- [X] These changes fix #11981 (github issue number if applicable).

<!-- Either: -->
- [ ] There are tests for these changes OR
- [X] These changes do not require tests because "more general approach to reproducibility testing is needed"

<!-- 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/12244)
<!-- Reviewable:end -->
2016-08-04 18:15:49 -05:00
Anton Ovchinnikov
0a056a9b31 Create .tar.gz package deterministically
Fixes #11981.
2016-08-04 21:47:37 +02:00
Paul Rouget
663f8530cf Enable multiprocess and sandbox
Enable multiprocess and sandbox for Mac and Linux when running
browserhtml.
2016-08-03 06:19:59 +02:00
Jack Moffitt
d8c0b87eb2 Add Windows packaging to create an MSI installer 2016-07-25 14:58:33 -06:00
bors-servo
bb18e99597 Auto merge of #12088 - this-jacob:colon_to_dash, r=ConnorGBrewster
Change colons to dashes in package name

<!-- Please describe your changes on the following line: -->

Updating packaging so that packages use '-' instead of a ':'

r? @ConnorGBrewster

---
<!-- 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] These changes fix #11984  (github issue number if applicable).

<!-- Either: -->
- [ ] There are tests for these changes OR
- [X] `./mach test-tidy` does not report any errors
- [X] These changes do not require tests because they are updating packaging

<!-- 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/12088)
<!-- Reviewable:end -->
2016-07-03 05:42:41 -07:00
Jacob Thomas
fe818addd0 Change colons to dashes in package name 2016-07-01 10:48:10 -06:00
Marco Neumann
f7b86f349b Add shebang to Linux runservo.sh 2016-07-01 10:56:51 +02:00
Connor Brewster
322d39442c fix runservo.sh using absolute path 2016-06-30 22:28:22 -06:00
Connor Brewster
0b84921d03 Copy resources on linux package 2016-06-30 22:17:09 -06:00
Connor Brewster
352090875c put run script in the right folder for packaging 2016-06-30 18:33:07 -06:00
Connor Brewster
694b930891 fix dylib relinking issue for mac packaging 2016-06-28 16:24:21 -06:00
Connor Brewster
96b7a19ca0 create an app bundle and package it in dmg
Fix resource lookup, add package prefs

fix tidy issues
2016-06-28 13:09:08 -06:00
Paul Rouget
8836250d71 Fix preference name 2016-06-24 12:03:01 +02:00
mrmiywj
909f0da3c2 add reload keyboard shortcut
rename the preference to shell.builtin-key-shortcuts.enabled
2016-06-23 17:37:56 +08:00