From f53071f1e486e20be86c39254d6f97040db1401a Mon Sep 17 00:00:00 2001 From: shatian114 <1320024819@qq.com> Date: Thu, 10 Feb 2022 08:45:13 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=AE=89=E8=A3=85=E5=9B=BE?= =?UTF-8?q?=E6=A0=87=E6=96=87=E4=BB=B6=E9=87=8C=EF=BC=8C=E6=89=A7=E8=A1=8C?= =?UTF-8?q?=E6=96=87=E4=BB=B6=E5=92=8C=E5=9B=BE=E6=A0=87=E5=9B=BE=E7=89=87?= =?UTF-8?q?=E6=96=87=E4=BB=B6=E7=9A=84=E8=B7=AF=E5=BE=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- res/template.desktop | 4 ++-- tools/install-desktop-icon-node | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/res/template.desktop b/res/template.desktop index c1a5f57..45799bd 100644 --- a/res/template.desktop +++ b/res/template.desktop @@ -4,8 +4,8 @@ Name[zh_CN]=微信开发者工具 Comment=The development tools for wechat projects Comment[zh_CN]=提供微信开发相关项目的开发IDE支持 Categories=Development;WebDevelopment;IDE; -Exec=${dir}/bin/wechat-devtools -Icon=wechat-devtools +Exec=dir/bin/wechat-devtools +Icon=dir/res/icons/wechat-devtools.svg Type=Application Terminal=false StartupWMClass=wechat_devtools diff --git a/tools/install-desktop-icon-node b/tools/install-desktop-icon-node index b691f92..ef514e1 100755 --- a/tools/install-desktop-icon-node +++ b/tools/install-desktop-icon-node @@ -32,7 +32,7 @@ fs.copyFileSync( let desktopCode = fs .readFileSync(path.resolve(__dirname, "../res/template.desktop"), "utf8") - .replace("dir", path.resolve(__dirname, "..")); + .replace(new RegExp("dir", "g"), path.resolve(__dirname, "..")); desktopPath = os.homedir() + "/.local/share/applications/wechat-devtools.desktop";