Disable auto update for osx only
This commit is contained in:
@@ -3,21 +3,21 @@ import { BuildInfo } from 'electron-telemetry/build/Model'
|
|||||||
import { UpdateInfo } from '../events'
|
import { UpdateInfo } from '../events'
|
||||||
|
|
||||||
export function shouldAutoUpdate(build: BuildInfo) {
|
export function shouldAutoUpdate(build: BuildInfo) {
|
||||||
return build.package !== 'portable'
|
return build.package !== 'portable' && build.platform !== 'mac'
|
||||||
}
|
}
|
||||||
|
|
||||||
export function handleAutoUpdate() {
|
export function handleAutoUpdate() {
|
||||||
// autoUpdater.on('update-available', (info: UpdateInfo) => {
|
autoUpdater.on('update-available', (info: UpdateInfo) => {
|
||||||
// console.log('There is an update available')
|
console.log('There is an update available')
|
||||||
// })
|
})
|
||||||
|
|
||||||
// autoUpdater.on('error', (error) => {
|
autoUpdater.on('error', (error) => {
|
||||||
// console.error('could not update due to error', error)
|
console.error('could not update due to error', error)
|
||||||
// })
|
})
|
||||||
|
|
||||||
// try {
|
try {
|
||||||
// autoUpdater.checkForUpdatesAndNotify()
|
autoUpdater.checkForUpdatesAndNotify()
|
||||||
// } catch (error) {
|
} catch (error) {
|
||||||
// console.error(error)
|
console.error(error)
|
||||||
// }
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user