1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-14 02:06:29 +00:00

auto update確認

This commit is contained in:
Rokt33r
2015-11-15 03:52:34 +09:00
parent 46c6555f94
commit da9d7a4336
3 changed files with 27 additions and 10 deletions

12
main.js
View File

@@ -30,8 +30,8 @@ updater
.on('update-downloaded', function (event, releaseNotes, releaseName, releaseDate, updateUrl, quitAndUpdate) {
nn.notify({
title: 'Ready to Update!! ' + versionText,
icon: path.join(__dirname, 'browser/main/resources/favicon-230x230.png'),
message: 'Click tray icon to update app: ' + releaseName
icon: path.join(__dirname, '/resources/favicon-230x230.png'),
message: 'Click update button on Main window: ' + releaseName
})
update = quitAndUpdate
@@ -50,6 +50,14 @@ app.on('ready', function () {
// menu start
var template = require('./atom-lib/menu-template')
setInterval(function () {
updater.checkForUpdates()
}, 1000 * 60 * 60 * 24)
ipc.on('check-update', function (event, msg) {
updater.checkForUpdates()
})
ipc.on('update-app', function (event, msg) {
if (update != null) {
appQuit = true