diff options
author | 2017-12-28 07:35:38 -0500 | |
---|---|---|
committer | 2017-12-28 07:35:38 -0500 | |
commit | b51009db821aa3f4c8a330576c9afc96703f2edc (patch) | |
tree | 6be2bff3f00afba66ad38de8aa0728318ca4f94c | |
parent | Update to latest version of node-sass and electron-spellchecker (diff) | |
download | ferdium-app-b51009db821aa3f4c8a330576c9afc96703f2edc.tar.gz ferdium-app-b51009db821aa3f4c8a330576c9afc96703f2edc.tar.zst ferdium-app-b51009db821aa3f4c8a330576c9afc96703f2edc.zip |
Remove auto-update in development
-rw-r--r-- | src/electron/ipc-api/autoUpdate.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/electron/ipc-api/autoUpdate.js b/src/electron/ipc-api/autoUpdate.js index 7bc193e2d..ba49a2f97 100644 --- a/src/electron/ipc-api/autoUpdate.js +++ b/src/electron/ipc-api/autoUpdate.js | |||
@@ -1,8 +1,9 @@ | |||
1 | import { app, ipcMain } from 'electron'; | 1 | import { app, ipcMain } from 'electron'; |
2 | import { autoUpdater } from 'electron-updater'; | 2 | import { autoUpdater } from 'electron-updater'; |
3 | import { isDevMode } from '../../environment.js'; | ||
3 | 4 | ||
4 | export default (params) => { | 5 | export default (params) => { |
5 | if (process.platform === 'darwin' || process.platform === 'win32') { | 6 | if (!isDevMode && (process.platform === 'darwin' || process.platform === 'win32')) { |
6 | // autoUpdater.setFeedURL(updateUrl); | 7 | // autoUpdater.setFeedURL(updateUrl); |
7 | ipcMain.on('autoUpdate', (event, args) => { | 8 | ipcMain.on('autoUpdate', (event, args) => { |
8 | try { | 9 | try { |