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

fix

parent d8219114
...@@ -200,8 +200,18 @@ function start_server() { ...@@ -200,8 +200,18 @@ 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] + {
ia32: '32',
x64: '64'
}[process.arch]);
if (process.argv[1] == '--squirrel-firstrun') {
setTimeout(()=> {
autoUpdater.checkForUpdates(); autoUpdater.checkForUpdates();
}, 3000)
} else {
autoUpdater.checkForUpdates();
}
/*autoUpdater.on('error', (error)=>{ /*autoUpdater.on('error', (error)=>{
console.log('update error', error) console.log('update error', error)
}); });
...@@ -214,7 +224,7 @@ function start_server() { ...@@ -214,7 +224,7 @@ function start_server() {
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