Commit 75704251 authored by 神楽坂玲奈's avatar 神楽坂玲奈

fix

parent d8219114
...@@ -200,21 +200,31 @@ function start_server() { ...@@ -200,21 +200,31 @@ function start_server() {
save_db(); save_db();
}); });
autoUpdater.setFeedURL('https://mycard.moe/update/' + {win32: 'win'}[process.platform] + {ia32: '32', x64: '64'}[process.arch]); autoUpdater.setFeedURL('https://mycard.moe/update/' + {win32: 'win'}[process.platform] + {
autoUpdater.checkForUpdates(); ia32: '32',
x64: '64'
}[process.arch]);
if (process.argv[1] == '--squirrel-firstrun') {
setTimeout(()=> {
autoUpdater.checkForUpdates();
}, 3000)
} else {
autoUpdater.checkForUpdates();
}
/*autoUpdater.on('error', (error)=>{ /*autoUpdater.on('error', (error)=>{
console.log('update error', error) console.log('update error', error)
}); });
autoUpdater.on('checking-for-update', ()=>{ autoUpdater.on('checking-for-update', ()=>{
console.log('checking-for-update') console.log('checking-for-update')
}); });
autoUpdater.on('update-available', ()=>{ autoUpdater.on('update-available', ()=>{
console.log('update-available') console.log('update-available')
}); });
autoUpdater.on('update-not-available', ()=>{ autoUpdater.on('update-not-available', ()=>{
console.log('update-not-available') console.log('update-not-available')
});*/ });*/
autoUpdater.on('update-downloaded', ()=>{ autoUpdater.on('update-downloaded', ()=> {
autoUpdater.quitAndInstall() autoUpdater.quitAndInstall()
}) })
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment