Repository navigation
Add --no-auto-update while run scripts/build to disable autoupdate - #8721
Conversation
|
I noticed that there is no way to just check the update but not update it without touching electron code. So I instead disable the periodically check if no-autoupdate is set, whereas user could still click the check update button to trigger autoupdate manually. Also, do you have any suggestions on how to test that? I tried to hardcode the version number as |
If the app's version is just remote.require("app").getVersion()What you've done looks good so far. There are a couple of changes I'd like you to make:
|
49e6327 to
d94d095
Compare
|
@maxbrunsfeld ready for review again. I still can't trigger autoupdate, here is what I did:
Here I verified the version is But I verified that the Application menu worked as expected. |
dfee2d2 to
b5f64e0
Compare
|
Here is how I tested:
|
@scv119 👍 Ok, that sounds good to me. We can merge this as soon as you resolve the conflicts. |
|
@maxbrunsfeld rebased :), thanks! |
Add --no-auto-update while run `scripts/build` to disable autoupdate
|
Thanks @scv119! |
Add
--no-auto-updateto script/build as an option to disable Atom autoupdate.This PR create a new grunt task that set
_enableAutoUpdateto Atom's package.json while building. And in AutoupdateManager, it loads package.json and check if_enableAutoupdateis set.I verified that
script/build --no-auto-updatewill set"_enableAutoUpdate" : falsein Atom's package.json whereasscript/buildwill set"_enableAutoUpdate" : true.However, it seems that the build generated by
script/buildwon't trigger autoupdate even if I made the the version to be1.0.9instead of1.0.9-somehash.Any thought on how to verify the autoupdate feature using
script/build?cc @bolinfest @maxbrunsfeld @kevinsawicki