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 new folder when packaging on linux #11983
Comments
|
Please make a comment here if you intend to work on this issue. Thank you! |
|
@ConnorGBrewster I would like to try solving this issue. |
|
It would be nice to do some locking of the packaging directory to prevent simultaneous builds, but I would not consider part of the E-easy (can be done in a follow-up). |
|
Not sure where to start. Would I be able to use Rust to write the code and implement @ConnorGBrewster's issue? |
|
@Coder206 the packaging script is in |
|
@ConnorGBrewster Ok perfect. That makes sense! Thanks :) |
|
@Coder206 any progress on this? |
|
@ConnorGBrewster Yes, I was beginning to understand how everything works. However, it will be at least a week before a PR is submitted. I understand if you want to give this to someone else to get it done quicker. |
|
@Coder206 no worries, this isn't a huge priority right now. |
|
@ConnorGBrewster I made modification to
|
|
|
|
I'm pretty sure the correct way to test it is |
|
@jdm Thanks |
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 -->
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 -->
Right now we take the
target/[relase|debug]and remove everything but servo and bhtml and when we copy resources and add the run script. We should instead create a new temporary folder, copy servo, bhtml, resources, runscript to the new directory and create thetar.gzfrom that. After thetar.gzis created, the temporary folder should be deleted. This is similar to how packaging is done on the mac. The script should also check for the temporary folder when starting the packaging and delete it if it exists. If you don't do this, there will be errors with copying sinceshutil.copytreewill not overwrite existing.