-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 738215d
Showing
47 changed files
with
2,425 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
.DS_Store |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
APP_PATH=/Applications/企业微信.app/Contents/MacOS | ||
APP_NAME=企业微信 | ||
BACKUP_NAME=企业微信.bak | ||
FRAMEWORK_PATH=WEWTweak.framework | ||
FRAMEWORK_NAME=WEWTweak | ||
|
||
debug:: | ||
DYLD_INSERT_LIBRARIES=${FRAMEWORK_PATH}/${FRAMEWORK_NAME} ${APP_PATH}/${APP_NAME} & | ||
|
||
install:: | ||
@if ! [[ $EUID -eq 0 ]]; then\ | ||
echo "😢 This script should be run using sudo or as the root user.";\ | ||
exit 1;\ | ||
fi | ||
@if ! [ -f "${APP_PATH}/${APP_NAME}" ]; then\ | ||
echo "😢 Can not find ${APP_NAME}.";\ | ||
exit 1;\ | ||
fi | ||
@if ! [ -d "${FRAMEWORK_PATH}" ]; then\ | ||
echo "⚠️ Can not find ${FRAMEWORK_PATH}, please build first.";\ | ||
exit 1;\ | ||
fi | ||
@if [ -d "${APP_PATH}/${FRAMEWORK_PATH}" ]; then\ | ||
rm -rf ${APP_PATH}/${FRAMEWORK_PATH};\ | ||
cp -R ${FRAMEWORK_PATH} ${APP_PATH};\ | ||
echo "✅ Replaced the old framework with the new one, install success.";\ | ||
else \ | ||
cp ${APP_PATH}/${APP_NAME} ${APP_PATH}/${BACKUP_NAME};\ | ||
cp -R ${FRAMEWORK_PATH} ${APP_PATH};\ | ||
./insert_dylib @executable_path/${FRAMEWORK_PATH}/${FRAMEWORK_NAME} ${APP_PATH}/${APP_NAME} ${APP_PATH}/${APP_NAME} --all-yes;\ | ||
echo "✅ Install success.";\ | ||
fi | ||
|
||
uninstall:: | ||
@if ! [[ $EUID -eq 0 ]]; then\ | ||
echo "😢 This script should be run using sudo or as the root user.";\ | ||
exit 1;\ | ||
fi | ||
@if ! [ -f "${APP_PATH}/${APP_NAME}" ]; then\ | ||
echo "😢 Can not find ${APP_NAME}.";\ | ||
exit 1;\ | ||
fi | ||
@if ! [ -f "${APP_PATH}/${BACKUP_NAME}" ]; then\ | ||
echo "😢 Can not find ${BACKUP_NAME}.";\ | ||
exit 1;\ | ||
fi | ||
|
||
@rm -rf ${APP_PATH}/${FRAMEWORK_PATH}; | ||
@mv ${APP_PATH}/${BACKUP_NAME} ${APP_PATH}/${APP_NAME}; | ||
@echo "✅ Uninstall success"; | ||
|
||
clean:: | ||
rm -rf ${FRAMEWORK_PATH} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# 去除企业微信 Mac 端水印 | ||
|
||
<img src="images/1.png" width="700"/> | ||
|
||
## Install | ||
|
||
```shell | ||
# quit the app first | ||
git clone [email protected]:X140Yu/WEWTweak.git | ||
cd WEWTweak | ||
sudo make install | ||
``` | ||
|
||
`sudo make uninstall` to uninstall | ||
|
||
## Known Issues | ||
|
||
This alert pops up everytime I start the app, haven’t figure how to deal with it. | ||
|
||
<img src="images/3.png" width="400"/> | ||
|
||
## Credit | ||
|
||
- [nygard/class-dump](https://github.com/nygard/class-dump) | ||
- [Sunnyyoung/WeChatTweak-macOS](https://github.com/Sunnyyoung/WeChatTweak-macOS) | ||
- [Tyilo/insert_dylib](https://github.com/Tyilo/insert_dylib) | ||
|
||
## License | ||
|
||
GPLv3, see LICENSE file for more information. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Versions/Current/Headers |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Versions/Current/Modules |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Versions/Current/Resources |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
// | ||
// WEWTweak.h | ||
// WEWTweak | ||
// | ||
// Created by Xinyu Zhao on 2018/11/23. | ||
// Copyright © 2018 Xinyu Zhao. All rights reserved. | ||
// | ||
|
||
#import <Cocoa/Cocoa.h> | ||
|
||
//! Project version number for WEWTweak. | ||
FOUNDATION_EXPORT double WEWTweakVersionNumber; | ||
|
||
//! Project version string for WEWTweak. | ||
FOUNDATION_EXPORT const unsigned char WEWTweakVersionString[]; | ||
|
||
// In this header, you should import all the public headers of your framework using statements like #import <WEWTweak/PublicHeader.h> | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
framework module WEWTweak { | ||
umbrella header "WEWTweak.h" | ||
|
||
export * | ||
module * { export * } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | ||
<plist version="1.0"> | ||
<dict> | ||
<key>BuildMachineOSBuild</key> | ||
<string>18B75</string> | ||
<key>CFBundleDevelopmentRegion</key> | ||
<string>en</string> | ||
<key>CFBundleExecutable</key> | ||
<string>WEWTweak</string> | ||
<key>CFBundleIdentifier</key> | ||
<string>com.x140yu.mac.WEWTweak</string> | ||
<key>CFBundleInfoDictionaryVersion</key> | ||
<string>6.0</string> | ||
<key>CFBundleName</key> | ||
<string>WEWTweak</string> | ||
<key>CFBundlePackageType</key> | ||
<string>FMWK</string> | ||
<key>CFBundleShortVersionString</key> | ||
<string>1.0</string> | ||
<key>CFBundleSupportedPlatforms</key> | ||
<array> | ||
<string>MacOSX</string> | ||
</array> | ||
<key>CFBundleVersion</key> | ||
<string>1</string> | ||
<key>DTCompiler</key> | ||
<string>com.apple.compilers.llvm.clang.1_0</string> | ||
<key>DTPlatformBuild</key> | ||
<string>10B61</string> | ||
<key>DTPlatformVersion</key> | ||
<string>GM</string> | ||
<key>DTSDKBuild</key> | ||
<string>18B71</string> | ||
<key>DTSDKName</key> | ||
<string>macosx10.14</string> | ||
<key>DTXcode</key> | ||
<string>1010</string> | ||
<key>DTXcodeBuild</key> | ||
<string>10B61</string> | ||
<key>NSHumanReadableCopyright</key> | ||
<string>Copyright © 2018 Xinyu Zhao. All rights reserved.</string> | ||
</dict> | ||
</plist> |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
A |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Versions/Current/WEWTweak |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
|
||
target 'WEWTweak' do | ||
pod 'JRSwizzle' | ||
|
||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
PODS: | ||
- JRSwizzle (1.0) | ||
|
||
DEPENDENCIES: | ||
- JRSwizzle | ||
|
||
SPEC REPOS: | ||
https://github.com/cocoapods/specs.git: | ||
- JRSwizzle | ||
|
||
SPEC CHECKSUMS: | ||
JRSwizzle: dd5ead5d913a0f29e7f558200165849f006bb1e3 | ||
|
||
PODFILE CHECKSUM: 7f306fc990a0bd9fcb3cfe508061854e07a91b87 | ||
|
||
COCOAPODS: 1.6.0.beta.2 |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.