Merge pull request #11 from msojocs/shatian_dev

修复安装图标文件里,执行文件和图标图片文件的路径问题
This commit is contained in:
msojocs 2022-02-10 10:18:14 +08:00 committed by GitHub
commit 0c3f52f1d6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -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";