mirror of
https://github.com/laurent22/joplin.git
synced 2024-11-24 08:12:24 +02:00
Trying auto update
This commit is contained in:
parent
0e01011afc
commit
e8d7050279
@ -234,11 +234,6 @@ class Application extends BaseApplication {
|
||||
label: _('Documentation'),
|
||||
accelerator: 'F1',
|
||||
click () { bridge().openExternal('http://joplin.cozic.net') }
|
||||
}, {
|
||||
label: _('Check for updates'),
|
||||
click () {
|
||||
bridge().checkForUpdatesAndNotify()
|
||||
}
|
||||
}, {
|
||||
label: _('About Joplin'),
|
||||
click: () => {
|
||||
@ -301,6 +296,10 @@ class Application extends BaseApplication {
|
||||
type: 'FOLDER_SELECT',
|
||||
id: Setting.value('activeFolderId'),
|
||||
});
|
||||
|
||||
setTimeout(() => {
|
||||
bridge().checkForUpdatesAndNotify(reg.logger());
|
||||
}, 5000);
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -1,7 +1,5 @@
|
||||
const { _ } = require('lib/locale.js');
|
||||
|
||||
const autoUpdater = require("electron-updater").autoUpdater;
|
||||
|
||||
class Bridge {
|
||||
|
||||
constructor(electronWrapper) {
|
||||
@ -68,12 +66,12 @@ class Bridge {
|
||||
return require('electron').shell.openItem(fullPath)
|
||||
}
|
||||
|
||||
checkForUpdatesAndNotify() {
|
||||
autoUpdater.logger = require("electron-log")
|
||||
autoUpdater.logger.info('Hello, log');
|
||||
autoUpdater.logger.transports.file.level = "info"
|
||||
checkForUpdatesAndNotify(logger) {
|
||||
const autoUpdater = require("electron-updater").autoUpdater;
|
||||
logger.info('Doing autoupdate checkForUpdatesAndNotify...');
|
||||
autoUpdater.logger = logger;
|
||||
return autoUpdater.checkForUpdatesAndNotify();
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "Joplin",
|
||||
"version": "0.10.1",
|
||||
"version": "0.10.2",
|
||||
"description": "Joplin for Desktop",
|
||||
"main": "main.js",
|
||||
"scripts": {
|
||||
|
Loading…
Reference in New Issue
Block a user