Commit 91e4a31b authored by nanahira's avatar nanahira

cleanup

parent 64134a21
...@@ -213,7 +213,7 @@ app.on('ready', async () => { ...@@ -213,7 +213,7 @@ app.on('ready', async () => {
createTray(); createTray();
} }
if (process.env['NODE_ENV'] === 'production') { if (process.env['NODE_ENV'] === 'production') {
let updateTempPath = '~/.cache/mycard-updater' /*let updateTempPath = '~/.cache/mycard-updater'
if (process.platform === 'win32') { if (process.platform === 'win32') {
updateTempPath = `${process.env.LOCALAPPDATA}\\mycard-updater` updateTempPath = `${process.env.LOCALAPPDATA}\\mycard-updater`
} else if (process.platform === 'darwin') { } else if (process.platform === 'darwin') {
...@@ -221,7 +221,7 @@ app.on('ready', async () => { ...@@ -221,7 +221,7 @@ app.on('ready', async () => {
} }
try { try {
await require('fs').promises.mkdir(updateTempPath, {recursive: true}); await require('fs').promises.mkdir(updateTempPath, {recursive: true});
} catch(e) {} } catch(e) {}*/
await autoUpdater.checkForUpdates(); await autoUpdater.checkForUpdates();
} }
}); });
......
{ {
"name": "mycard", "name": "mycard",
"version": "3.0.41", "version": "3.0.42",
"description": "moecube", "description": "moecube",
"keywords": [], "keywords": [],
"author": "zh99998 <zh99998@gmail.com>", "author": "zh99998 <zh99998@gmail.com>",
......
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