mirror of
https://github.com/msojocs/wechat-web-devtools-linux.git
synced 2025-07-22 00:00:04 +08:00
修复安装图标文件里,执行文件和图标图片文件的路径问题
This commit is contained in:
parent
58a8f7a5bd
commit
f53071f1e4
@ -4,8 +4,8 @@ Name[zh_CN]=微信开发者工具
|
|||||||
Comment=The development tools for wechat projects
|
Comment=The development tools for wechat projects
|
||||||
Comment[zh_CN]=提供微信开发相关项目的开发IDE支持
|
Comment[zh_CN]=提供微信开发相关项目的开发IDE支持
|
||||||
Categories=Development;WebDevelopment;IDE;
|
Categories=Development;WebDevelopment;IDE;
|
||||||
Exec=${dir}/bin/wechat-devtools
|
Exec=dir/bin/wechat-devtools
|
||||||
Icon=wechat-devtools
|
Icon=dir/res/icons/wechat-devtools.svg
|
||||||
Type=Application
|
Type=Application
|
||||||
Terminal=false
|
Terminal=false
|
||||||
StartupWMClass=wechat_devtools
|
StartupWMClass=wechat_devtools
|
||||||
|
@ -32,7 +32,7 @@ fs.copyFileSync(
|
|||||||
|
|
||||||
let desktopCode = fs
|
let desktopCode = fs
|
||||||
.readFileSync(path.resolve(__dirname, "../res/template.desktop"), "utf8")
|
.readFileSync(path.resolve(__dirname, "../res/template.desktop"), "utf8")
|
||||||
.replace("dir", path.resolve(__dirname, ".."));
|
.replace(new RegExp("dir", "g"), path.resolve(__dirname, ".."));
|
||||||
|
|
||||||
desktopPath =
|
desktopPath =
|
||||||
os.homedir() + "/.local/share/applications/wechat-devtools.desktop";
|
os.homedir() + "/.local/share/applications/wechat-devtools.desktop";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user