Skip to content

Commit

Permalink
update 241-2
Browse files Browse the repository at this point in the history
  • Loading branch information
KZ25T committed May 6, 2024
1 parent 35a8928 commit 0be0802
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 14 deletions.
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,7 @@ appimagetool ./src

```bash
# 安装
sudo mv wechat-x86_64.AppImage /usr/bin/wechat
sudo wechat --install # 安装图标、桌面文件
sudo ./wechat-x86_64.AppImage --install
# 卸载
sudo wechat --remove
```
Expand All @@ -102,7 +101,7 @@ wechat-x86_64.AppImage --help
wechat-x86_64.AppImage --debug
# 关闭微信进程(早期版本无法退出,现在应该不需要这个功能了)
wechat-x86_64.AppImage --kill
# 安装图标、桌面文件
# 安装图标、桌面文件、应用
sudo wechat-x86_64.AppImage --install
# 卸载图标、桌面文件、应用
sudo wechat-x86_64.AppImage --remove
Expand Down
1 change: 1 addition & 0 deletions src/.DirIcon
6 changes: 4 additions & 2 deletions src/AppRun
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,10 @@ if [ $# -eq 1 ]; then
exit $?
fi
if [ "$1" = "--install" ]; then
cp $APPDIR/usr/share/applications/wechat.desktop /usr/share/applications
cp $APPDIR/usr/share/icons/hicolor/256x256/apps/wechat.png /usr/share/icons/hicolor/256x256/apps
cp $APPIMAGE /usr/bin/wechat
cp $APPDIR/wechat.desktop /usr/share/applications
cp $APPDIR/wechat.png /usr/share/icons/hicolor/256x256/apps
sed -i 's#Icon=wechat#Icon=/usr/share/icons/hicolor/256x256/apps/wechat.png#g' /usr/share/applications/wechat.desktop
exit $?
fi
if [ "$1" = "--remove" ]; then
Expand Down
9 changes: 0 additions & 9 deletions src/usr/share/applications/wechat.desktop

This file was deleted.

Binary file removed src/usr/share/icons/hicolor/256x256/apps/wechat.png
Binary file not shown.
1 change: 1 addition & 0 deletions src/wechat.desktop
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
[Desktop Entry]
Name=wechat
Exec=wechat %U
StartupNotify=true
Terminal=false
Icon=wechat
Expand Down
Binary file modified src/wechat.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 0be0802

Please sign in to comment.