Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
X140Yu committed Nov 23, 2018
0 parents commit 738215d
Show file tree
Hide file tree
Showing 47 changed files with 2,425 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.DS_Store
674 changes: 674 additions & 0 deletions LICENSE

Large diffs are not rendered by default.

53 changes: 53 additions & 0 deletions Makefile
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}
30 changes: 30 additions & 0 deletions README.md
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.
1 change: 1 addition & 0 deletions WEWTweak.framework/Headers
1 change: 1 addition & 0 deletions WEWTweak.framework/Modules
1 change: 1 addition & 0 deletions WEWTweak.framework/Resources
19 changes: 19 additions & 0 deletions WEWTweak.framework/Versions/A/Headers/WEWTweak.h
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>


6 changes: 6 additions & 0 deletions WEWTweak.framework/Versions/A/Modules/module.modulemap
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
framework module WEWTweak {
umbrella header "WEWTweak.h"

export *
module * { export * }
}
44 changes: 44 additions & 0 deletions WEWTweak.framework/Versions/A/Resources/Info.plist
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 added WEWTweak.framework/Versions/A/WEWTweak
Binary file not shown.
1 change: 1 addition & 0 deletions WEWTweak.framework/Versions/Current
1 change: 1 addition & 0 deletions WEWTweak.framework/WEWTweak
5 changes: 5 additions & 0 deletions WEWTweak/Podfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@

target 'WEWTweak' do
pod 'JRSwizzle'

end
16 changes: 16 additions & 0 deletions WEWTweak/Podfile.lock
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
1 change: 1 addition & 0 deletions WEWTweak/Pods/Headers/Private/JRSwizzle/JRSwizzle.h

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions WEWTweak/Pods/Headers/Public/JRSwizzle/JRSwizzle.h

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 13 additions & 0 deletions WEWTweak/Pods/JRSwizzle/JRSwizzle.h

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

134 changes: 134 additions & 0 deletions WEWTweak/Pods/JRSwizzle/JRSwizzle.m

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 738215d

Please sign in to comment.