更改命令图标储存方式

This commit is contained in:
fofolee
2020-04-10 19:31:44 +08:00
parent 6ea282b6f0
commit f42e59ea82
2 changed files with 12 additions and 27 deletions

View File

@@ -44,14 +44,6 @@ getBase64Ico = path => {
return fs.readFileSync(path, 'base64');
}
cacheIco = (b64, icon) => {
var file = path.resolve(__dirname, icon),
dir = path.dirname(file);
!exists(dir) && fs.mkdirSync(dir);
b64 && !exists(file) && fs.writeFileSync(file, b64, 'base64');
return file;
}
openFolder = options => {
return dialog.showOpenDialogSync(BrowserWindow.getFocusedWindow(), options);
}