mirror of
https://github.com/BoostIo/Boostnote
synced 2025-12-14 02:06:29 +00:00
auto update確認
This commit is contained in:
12
main.js
12
main.js
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user