Update project

1. Rename project
2. Add Chinese README
This commit is contained in:
Sunnyyoung 2017-01-24 20:13:36 +08:00
parent b6c7ba03ec
commit 2eb9aafccb
6 changed files with 53 additions and 15 deletions

View File

@ -1,11 +1,12 @@
WECHATPATH=/Applications/WeChat.app/Contents/MacOS WECHATPATH=/Applications/WeChat.app/Contents/MacOS
DYLIBFILE=WeChatTweak.dylib
build:: build::
clang -dynamiclib ./WeChatHook.m -fobjc-link-runtime -current_version 1.0 -compatibility_version 1.0 -o ./WeChatHook.dylib clang -dynamiclib ./WeChatTweak.m -fobjc-link-runtime -current_version 1.0 -compatibility_version 1.0 -o ./${DYLIBFILE}
debug:: debug::
make build make build
DYLD_INSERT_LIBRARIES=./WeChatHook.dylib ${WECHATPATH}/WeChat & DYLD_INSERT_LIBRARIES=./${DYLIBFILE} ${WECHATPATH}/WeChat &
install:: install::
@if ! [[ $EUID -eq 0 ]]; then\ @if ! [[ $EUID -eq 0 ]]; then\
@ -16,14 +17,14 @@ install::
echo "Can not find the WeChat.";\ echo "Can not find the WeChat.";\
exit 1;\ exit 1;\
fi fi
@if ! [ -f "./WeChatHook.dylib" ]; then\ @if ! [ -f "./${DYLIBFILE}" ]; then\
echo "Can not find the dylib file, please build first.";\ echo "Can not find the dylib file, please build first.";\
exit 1;\ exit 1;\
fi fi
@cp ${WECHATPATH}/WeChat ${WECHATPATH}/WeChat.bak; @cp ${WECHATPATH}/WeChat ${WECHATPATH}/WeChat.bak;
@cp ./WeChatHook.dylib ${WECHATPATH}/WeChatHook.dylib; @cp ./${DYLIBFILE} ${WECHATPATH}/${DYLIBFILE};
@./insert_dylib @executable_path/WeChatHook.dylib ${WECHATPATH}/WeChat ${WECHATPATH}/WeChat --all-yes; @./insert_dylib @executable_path/${DYLIBFILE} ${WECHATPATH}/WeChat ${WECHATPATH}/WeChat --all-yes;
@echo "Install successed!"; @echo "Install successed!";
uninstall:: uninstall::
@ -40,9 +41,9 @@ uninstall::
exit 1;\ exit 1;\
fi fi
@rm -rf ${WECHATPATH}/WeChatHook.dylib; @rm -rf ${WECHATPATH}/${DYLIBFILE};
@mv ${WECHATPATH}/WeChat.bak ${WECHATPATH}/WeChat; @mv ${WECHATPATH}/WeChat.bak ${WECHATPATH}/WeChat;
@echo "Uninstall successed"; @echo "Uninstall successed";
clean:: clean::
rm -rf ./WeChatHook.dylib rm -rf ./${DYLIBFILE}

35
README-Chinese.md Normal file
View File

@ -0,0 +1,35 @@
# WeChatTweak-macOS
[![README](https://img.shields.io/badge/README-English-blue.svg)](https://github.com/Sunnyyoung/WeChatTweak-macOS/blob/master/README.md) [![README](https://img.shields.io/badge/README-中文-blue.svg)](https://github.com/Sunnyyoung/WeChatTweak-macOS/blob/master/README-Chinese.md)
微信macOS客户端消息撤回拦截动态库。
## 截图
![](https://raw.githubusercontent.com/Sunnyyoung/WeChatTweak-macOS/master/Screenshot/WeChatTweak-macOS.png)
## 功能
- 阻止消息撤回
## 使用
- `sudo make install` 安装动态库
- `sudo make uninstall` 卸载动态库
## 开发调试
**Requirement: Command Line Tools**
运行命令:`xcode-select --install` 安装Command Line Tools。
- `make build` 编译dylib动态库到当前目录下
- `make debug` 编译dylib动态库并临时注入微信macOS客户端
- `make clean` 清除生成文件
## 依赖
- [insert_dylib](https://github.com/Tyilo/insert_dylib)
## License
The [MIT License](LICENSE).

View File

@ -1,10 +1,12 @@
# WeChatHook-macOS # WeChatTweak-macOS
A dynamic library hook for WeChat macOS. [![README](https://img.shields.io/badge/README-English-blue.svg)](https://github.com/Sunnyyoung/WeChatTweak-macOS/blob/master/README.md) [![README](https://img.shields.io/badge/README-中文-blue.svg)](https://github.com/Sunnyyoung/WeChatTweak-macOS/blob/master/README-Chinese.md)
A dynamic library tweak for WeChat macOS.
## Screenshot ## Screenshot
![](https://raw.githubusercontent.com/Sunnyyoung/WeChatHook-macOS/master/Screenshot/WeChatHook-macOS.png) ![](https://raw.githubusercontent.com/Sunnyyoung/WeChatTweak-macOS/master/Screenshot/WeChatTweak-macOS.png)
## Feature ## Feature
@ -12,8 +14,8 @@ A dynamic library hook for WeChat macOS.
## Usage ## Usage
- `sudo make install` Inject the dylib to `WeChat` by [insert_dylib](https://github.com/Tyilo/insert_dylib) - `sudo make install` Inject the dylib to `WeChat` by [insert_dylib](https://github.com/Tyilo/insert_dylib)
- `sudo make uninstall` Uninstall the injection. - `sudo make uninstall` Uninstall the injection
## Development ## Development
@ -21,9 +23,9 @@ A dynamic library hook for WeChat macOS.
Run `xcode-select --install` to install Command Line Tools. Run `xcode-select --install` to install Command Line Tools.
- `make build` Build the dylib file to the same dicrectory. - `make build` Build the dylib file to the same dicrectory
- `make debug` Build the dylib file and run `WeChat` with dynamic injection. - `make debug` Build the dylib file and run `WeChat` with dynamic injection
- `make clean` Clean output files. - `make clean` Clean output files
## Dependency ## Dependency

View File

Before

Width:  |  Height:  |  Size: 48 KiB

After

Width:  |  Height:  |  Size: 48 KiB