mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-03-10 06:56:09 +08:00
Use staging autoupdater for staging.
This commit is contained in:
parent
95e4ac25c7
commit
945ea5a4fc
1 changed files with 7 additions and 2 deletions
|
@ -66,12 +66,17 @@ export default class AutoUpdateManager extends EventEmitter {
|
|||
_updateFeedURL = () => {
|
||||
const params = this.parameters();
|
||||
|
||||
let host = `edgehill.nylas.com`;
|
||||
if (this.config.settings.env === 'staging') {
|
||||
host = `edgehill-staging.nylas.com`;
|
||||
}
|
||||
|
||||
if (process.platform === 'win32') {
|
||||
// Squirrel for Windows can't handle query params
|
||||
// https://github.com/Squirrel/Squirrel.Windows/issues/132
|
||||
this.feedURL = `https://edgehill.nylas.com/update-check/win32/${params.arch}/${params.version}/${params.id}/${params.emails}`
|
||||
this.feedURL = `https://${host}/update-check/win32/${params.arch}/${params.version}/${params.id}/${params.emails}`
|
||||
} else {
|
||||
this.feedURL = `https://edgehill.nylas.com/update-check?${qs.stringify(params)}`;
|
||||
this.feedURL = `https://${host}/update-check?${qs.stringify(params)}`;
|
||||
}
|
||||
|
||||
if (autoUpdater) {
|
||||
|
|
Loading…
Reference in a new issue