-
-
Notifications
You must be signed in to change notification settings - Fork 17
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
Infer --app-version from package.json #449
Conversation
@@ -6,3 +6,4 @@ node_modules | |||
test/work | |||
.DS_Store | |||
.nyc_output | |||
basicTest-*/**/* |
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.
shouldn't that be ignored in test/work
?
@@ -2,6 +2,10 @@ | |||
|
|||
## Unreleased | |||
|
|||
### Added | |||
|
|||
* The `package.json` `version` property is the default app version if `--app-version` is unspecified. |
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.
Add GitHub PR # so you get credit 😄
I added the docs-needed tag because I think this needs to be mentioned in at least |
@malept Oh yeah, of course! Our oversight. I'll add that 👍 |
The consistent CI failures on OSX remind me why I didn't implement this feature myself - I couldn't figure out a way to get Wine to cooperate on Travis CI's OSX workers, so I just disabled those tests. Might have to do the same thing here. |
64b6a4e
to
ccb61b1
Compare
ccb61b1
to
a8a9f69
Compare
@@ -24,5 +24,6 @@ case "$TRAVIS_OS_NAME" in | |||
-in codesign.csr -out codesign.cer | |||
openssl pkcs12 -export -in codesign.cer -inkey codesign.key -out codesign.p12 -password pass:12345 | |||
security import codesign.p12 -k ~/Library/Keychains/login.keychain -P 12345 -T /usr/bin/codesign | |||
brew install wine |
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.
FYI, the last time I tried this I had to do some weird things so that the OSX CI builds didn't take forever to run and used a relatively recent version of Wine: https://github.com/electron-userland/electron-packager/blob/v7.1.0/test/ci/before_install.sh#L6-L11
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.
Why did you end up taking the brew installation out?
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.
Tests involving rcedit kept timing out.
I think I'm going to drop this for the 7.6.0 release and save it for a future non-patch release (which will cause a merge conflict in NEWS.md). |
@@ -24,5 +24,6 @@ case "$TRAVIS_OS_NAME" in | |||
-in codesign.csr -out codesign.cer | |||
openssl pkcs12 -export -in codesign.cer -inkey codesign.key -out codesign.p12 -password pass:12345 | |||
security import codesign.p12 -k ~/Library/Keychains/login.keychain -P 12345 -T /usr/bin/codesign | |||
npm install wine-darwin@1.9.16 |
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.
NPM can install everything, I guess...
t.end() | ||
|
||
if (process.platform === 'darwin' && process.env.TRAVIS) { | ||
fs.remove(path.join(process.env.HOME, '.wine'), function () { |
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.
This seems like it would make all of the tests that don't specify app-version
explicitly slower.
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.
Yeah, this was just an attempt to see what could be causing it to fail on CI, will revert after investigating more.
601de7f
to
dccc008
Compare
Got specs passing on Travis CI using |
Nice! The question becomes, is it consistent, or will tests time out sometimes? The inconsistent timeouts were why I had to stop installing wine on Travis OSX in the first place. |
Yeah, since this PR causes way more tests to call I haven't seen any failures on https://travis-ci.org/kevinsawicki/wine-darwin once the |
Not that I want to drag this PR out any longer, but should we have a test for the case where no |
I asked:
We talked about it this morning - I believe where we ended up is that it would be nice but it would take a lot of effort to handle this case, because you'd have to either:
@kevinsawicki please correct me if I'm misremembering. My inclination is for the second option to happen, but not in this PR. It would also obviously be a breaking change that requires a major version bump. |
🎉 |
Feel free to release 7.7.0 (or I can do it sometime after this afternoon). I need to add a couple of steps to the release docs for after running
|
This was removed in https://github.com/desktop/desktop/pull/307/files#r76084401 because we thought `build-version` was inferred by `electron-packager`. But it turns out it only infers `app-version`: electron/packager#449
This infers the
--app-version
from thepackage.json
version
property if it has not been passed in through the command line.For an app using Electron
1.2.6
with apackage.json
version of1.1.0
:cc pairing with @kevinsawicki @jlord
Fixes #306