-
Notifications
You must be signed in to change notification settings - Fork 178
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
Beta toggle #240
Beta toggle #240
Conversation
@@ -92,3 +121,30 @@ def tag_from_ci_env_vars(ci_name, pull_request_var, branch_var, commit_var): | |||
return None | |||
|
|||
|
|||
def republish_win_s3(yml_file, exe_file): |
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 can be deleted..
os.environ['CHANNEL'] = 'beta' | ||
elif 'CHANNEL' not in os.environ: | ||
# os.environ['CHANNEL'] = 'dev' | ||
os.environ['CHANNEL'] = 'beta' |
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 should be removed and previous line is uncommented before merge into master
Also wanted to note that from this feature onwards, releases for win and mac through auto-updater will be dictated by S3 buckets. Particularly We can do a few trial releases using git tags to test this new deployment setup |
This PR implements beta toggle in the app. Several things here,
18.4.0
-- the latest wasn't quite stable for me but this version iselectron
andspectron
versions ==> we may have resolved the rendering issues on OSX 10.10 because of this updateapp-shell/package.json
to remove unneeded depsHow the feature works,
File > Use Beta App
. Wait a few minutes and restart the app in order to get beta buildFile > Use Beta App
. Wait a few minutes. A popup will come alerting that there's a new versionThis feature is possible because the latest
electron-builder
allows for channels for updating. There is astable
channel and abeta
channel. These channels are tracked in S3 folders. When the app builds on master an app artifact is pushed to the S3beta
bucket. When the app is built on in a release tag the resulting artifact is pushed to the S3stable
folder.When the app builds a beta that beta is labeled with the
patch
andbuild
number are cantor and shifted by+1000
. This is because the electron-updater recognizes build updates only when the major, minor, or patch has increased. But when neither one of those has increased and only the build (which represents a commit from versioneer) has increased it is not noticeable to the updater. The patch number is shifted by a 1000 s.t. that when the app loads it determines that if the patch # less a 1000 is greater than 0, then this is a beta build and it should therefore cantor decode the patch number.