From 153d9dc5d70197879c58f1d74b3d0ee9a9c302f8 Mon Sep 17 00:00:00 2001 From: muwoo <2424880409@qq.com> Date: Fri, 3 Sep 2021 18:09:08 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=94=AF=E6=8C=81=20windows=20?= =?UTF-8?q?=E6=90=9C=E7=B4=A2=E7=B3=BB=E7=BB=9F=E5=BA=94=E7=94=A8=EF=BC=9A?= =?UTF-8?q?#39?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/renderer/assets/common/win-app.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/renderer/assets/common/win-app.js b/src/renderer/assets/common/win-app.js index 2674b51..61243a8 100644 --- a/src/renderer/assets/common/win-app.js +++ b/src/renderer/assets/common/win-app.js @@ -17,7 +17,7 @@ const getico = apps =>{ if (!exists) { fs.writeFile(iconpath, data.Base64ImageData, "base64", err => { if (err) { console.log(err); } - }) + }); } }) }) @@ -60,7 +60,7 @@ const getWinAppList = () => { for (var app of apps) { const dict = {} let lines = app.split('\r\n') - for (var line of lines) { + for (const line of lines) { if (line) { const key = line.split(/\s+:\s*/)[0]; const value = line.split(/\s+:\s*/)[1]; @@ -71,6 +71,7 @@ const getWinAppList = () => { dict.LegalName = dict.DisplayName.replace(/[\\\/\:\*\?\"\<\>\|]/g, ""); dict.Icon = path.join(os.tmpdir(), 'ProcessIcon', `${encodeURIComponent(dict.LegalName)}.png`); fileLists.push({ + ...dict, value: 'plugin', icon: dict.Icon, desc: dict.DisplayIcon,