Introduce new auto-updating staging channel

This commit is contained in:
Scott Nonnenberg 2022-06-14 15:08:38 -07:00 committed by GitHub
parent 4038d781d6
commit 038ec9e05d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 117 additions and 2 deletions

View file

@ -28,7 +28,7 @@ import * as durations from '../util/durations';
import { getTempPath, getUpdateCachePath } from '../util/attachments';
import { DialogType } from '../types/Dialogs';
import * as Errors from '../types/errors';
import { isAlpha, isBeta } from '../util/version';
import { isAlpha, isBeta, isStaging } from '../util/version';
import { strictAssert } from '../util/assert';
import * as packageJson from '../../package.json';
@ -754,6 +754,9 @@ export function getUpdatesFileName(): string {
function getChannel(): string {
const { version } = packageJson;
if (isStaging(version)) {
return 'staging';
}
if (isAlpha(version)) {
return 'alpha';
}