Changes of Linux canary v0.0.101
This commit is contained in:
parent
9d22227d16
commit
06d416c21a
1 changed files with 14 additions and 7 deletions
|
@ -4,22 +4,22 @@ Object.defineProperty(exports, "__esModule", {
|
||||||
value: true
|
value: true
|
||||||
});
|
});
|
||||||
|
|
||||||
var _events = require('events');
|
|
||||||
|
|
||||||
var _squirrelUpdate = require('./squirrelUpdate');
|
|
||||||
|
|
||||||
var squirrelUpdate = _interopRequireWildcard(_squirrelUpdate);
|
|
||||||
|
|
||||||
var _electron = require('electron');
|
var _electron = require('electron');
|
||||||
|
|
||||||
|
var _events = require('events');
|
||||||
|
|
||||||
var _request = require('./request');
|
var _request = require('./request');
|
||||||
|
|
||||||
var _request2 = _interopRequireDefault(_request);
|
var _request2 = _interopRequireDefault(_request);
|
||||||
|
|
||||||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
var _squirrelUpdate = require('./squirrelUpdate');
|
||||||
|
|
||||||
|
var squirrelUpdate = _interopRequireWildcard(_squirrelUpdate);
|
||||||
|
|
||||||
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj.default = obj; return newObj; } }
|
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj.default = obj; return newObj; } }
|
||||||
|
|
||||||
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
||||||
|
|
||||||
function versionParse(verString) {
|
function versionParse(verString) {
|
||||||
return verString.split('.').map(i => parseInt(i));
|
return verString.split('.').map(i => parseInt(i));
|
||||||
}
|
}
|
||||||
|
@ -127,6 +127,13 @@ class AutoUpdaterLinux extends _events.EventEmitter {
|
||||||
this.updateUrl = url;
|
this.updateUrl = url;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
quitAndInstall() {
|
||||||
|
// Just restart. The splash screen will hit the update manually state and
|
||||||
|
// prompt the user to download the new package.
|
||||||
|
_electron.app.relaunch();
|
||||||
|
_electron.app.quit();
|
||||||
|
}
|
||||||
|
|
||||||
checkForUpdates() {
|
checkForUpdates() {
|
||||||
const currVersion = versionParse(_electron.app.getVersion());
|
const currVersion = versionParse(_electron.app.getVersion());
|
||||||
this.emit('checking-for-update');
|
this.emit('checking-for-update');
|
||||||
|
|
Loading…
Reference in a new issue