-
-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for the new electron
package name
#435
Conversation
You could probably minimize the new |
41be860
to
cefb2b8
Compare
I have a fix in place and the test suite is passing for me locally but CI is failing. I removed
I changed that code to just I will dig into the CI failures tomorrow. |
@@ -2,6 +2,12 @@ | |||
|
|||
## Unreleased | |||
|
|||
## [7.5.0] - 2016-08-03 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you're adding this, I assume you're going to handle releasing a new version as soon as you merge. Otherwise, I suggest leaving it off and then the release will happen when it happens (mostly so the date is accurate).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also, add a link comparing 7.4.0 to 7.5.0 like the other versions (including 7.4.0 which I just fixed in c4809e1)
electron
package nameelectron
package name
Okay this is ready for review. The previous push passed on 5 of 6 CI boxes; hopefully we'll see all green this time. (CI takes about an hour) |
Happy to squash commits if that is still the convention here. |
Yup, see https://github.com/electron-userland/electron-packager/blob/master/CONTRIBUTING.md#filing-pull-requests (last bullet point) I will try to review later tonight. (Though I just noticed that somehow test coverage decreased with this PR...hopefully it's because CI isn't done yet.) |
TRAVIS_OS_NAME=osx ./test/ci/before_install.sh | ||
``` | ||
|
||
If you're using Linux: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you're using a Debian/Ubuntu-derived distribution of Linux:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also for Linux, that script is specifically for x86_64 architectures (since Travis only provides those machines). Not sure if it will error if you try to run it on an x86 architecture (mostly because I haven't tried it).
Hmmm. The tests no longer hit the "unable to find app name/electron version" code? Also, the test failure on Linux/Node 6 is troubling, but I'm not sure why it's happening (I reran the test run on Travis with the same result). |
Thanks for all the feedback, @malept. I pushed up some changes to the docs and DRY'd things a bit. I feel like the As for the CI, the tests definitely seem flaky. I keep seeing 5/6 passed builds, but the failing environment is not consistently the same. Let's see what happens on this go around. |
|
||
### Added | ||
|
||
* Support the new `electron` package name #435 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Parentheses around the issue number, please (for consistency)
I have not been thrilled with this project's test runner (or tests, for that matter). Any suggestions/improvements would be greatly appreciated. |
6b63678
to
8aa7dfc
Compare
Squashed it all down into a single commit. Pretty sure this is ready to go. Let's defer on improving the test suite for another PR. |
I'm 👍 except for that one new infer test, which I'd like to see fixed before merging.
Agreed. |
What's wrong with it? |
It's mostly duplicate code from the other test (pretty much everything except 3 lines). |
61ba66c
to
c508500
Compare
Simplified the test in 61ba66c (good call), and re-squashed commits. |
@zeke Thanks! Please release 😄 |
Thanks for helping out, @malept. Landed in 7.5.0 |
The
Can confirm this happens with both node Error: must specify version
at download (/Users/gregholguin/Desktop/testing123/node_modules/electron-download/index.js:16:27)
at Array.<anonymous> (/Users/gregholguin/Desktop/testing123/node_modules/electron-packager/index.js:121:7)
at each (/Users/gregholguin/Desktop/testing123/node_modules/run-series/index.js:17:24)
at next (/Users/gregholguin/Desktop/testing123/node_modules/rimraf/rimraf.js:74:7)
at FSReqWrap.CB [as oncomplete] (/Users/gregholguin/Desktop/testing123/node_modules/rimraf/rimraf.js:110:9) UPDATE: Currently using |
@SimulatedGREG I'm in the middle of releasing a fix (see #439 and #440). |
@malept was just noticing. Thanks for the awesome work! Scary how switching from |
It basically means we need help with a better testsuite. |
A rename of
electron-prebuilt
toelectron
is in the works: electron-userland/electron-prebuilt#160Both
electron-prebuilt
andelectron
will be published in tandem through the end of 2016.This PR updates
electron-packager
to add support for users of theelectron
package, while maintaining existing functionality forelectron-prebuilt
.@kevinsawicki @jlord @zcbenz @iolsen