Sync electron-* devDependencies with atom/atom#2513
Conversation
This makes sure we download the correct version of the electron-vendored "mksnapshot" binary. This will also automatically download the version in sync with Atom, if this module is being installed as a dependency in the main Atom repository.
Codecov Report
@@ Coverage Diff @@
## master #2513 +/- ##
=======================================
Coverage 93.42% 93.42%
=======================================
Files 236 236
Lines 13196 13196
Branches 1897 1897
=======================================
Hits 12329 12329
Misses 867 867 Continue to review full report at Codecov.
|
|
cc @smashwilson here's my "updating the It adds a script to take advantage of the |
|
✨ Excellent, this is really cool. Thank you! |
Please be sure to read the contributor's guide to the GitHub package before submitting any pull requests.
Requirements
Description of the Change
Match
electron-* dependencies to match Atom.electron-linkfrom 0.4.1 to 0.4.3electron-mksnapshotto 9.0.2electron-mksnapshotmodule allows specifying an exact Electron version you want to target, down to the patch level. I added ascript/redownload-electron-bins.jsfile to set this env var when appropriate, and re-download (the correct version of) the Electron-vendoredmksnapshotbinary.Screenshot/Gif
N/A
Alternate Designs
We could just use
electron-mksnapshot@6.0.0and hope that it's similar enough to6.1.12to catch all the bugs we need to catch.mksnapshotbinaries on Linux are still huge for that release (~420-450 MB).When this
githubmodule is being installed as a dependency in the main Atom repo, the newscript/redownload-electron-bins.jsreads the main Atom repo's{ package.json }.electronVersionand downloads themksnapshotbinary for that version of Electron.Let me know if you prefer the version of the Electron-vendored
mksnapshotbinary simply be hard-coded at this repo, and not dynamically set based on the parent Atom repo.Benefits
Sync with Atom, catch all the bugs! 🎉
Much smaller (~1/10th as large)
mksnapshotbinary should save Linux users network bandwidth, hard-drive space, memory consumption...Possible Drawbacks
script/redownload-electron-bins.jsadds some complexity to the repo.Applicable Issues
#2509
Metrics
N/A?
Tests
I am currently relying on the existing CI for validating this.
Documentation
N/A
Release Notes
N/A
User Experience Research (Optional)
N/A