Skip to content
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.

Commit

Permalink
allow beta releases to upgrade to prereleases
Browse files Browse the repository at this point in the history
  • Loading branch information
mikeseese committed Dec 19, 2018
1 parent 6aaf46b commit 7b4664c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main/init/AutoUpdate.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ import * as AutoUpdate from '../../common/redux/auto-update/actions'

import AutoUpdateService from '../../common/services/AutoUpdateService'

const pkg = require('../../../package.json')

let autoUpdateService = null

export function getAutoUpdateService() {
Expand Down Expand Up @@ -52,7 +54,7 @@ export function initAutoUpdates(settings, mainWindow) {
}

function getAutoUpdateServiceOptions(settings) {
let allowPrerelease = !!(settings.updates && settings.updates.allowPrerelease)
let allowPrerelease = pkg.version.match(/-beta/) !== null

return {
autoDownload: false,
Expand Down

0 comments on commit 7b4664c

Please sign in to comment.