Skip to content

Commit

Permalink
Merge pull request #11 from msojocs/shatian_dev
Browse files Browse the repository at this point in the history
修复安装图标文件里,执行文件和图标图片文件的路径问题
  • Loading branch information
msojocs authored Feb 10, 2022
2 parents 97a278e + f53071f commit 0c3f52f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions res/template.desktop
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion tools/install-desktop-icon-node
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down

0 comments on commit 0c3f52f

Please sign in to comment.