forked from TKkk-iOSer/WeChatPlugin-MacOS
-
Notifications
You must be signed in to change notification settings - Fork 0
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
1 parent
7647df8
commit 732349d
Showing
189 changed files
with
7,636 additions
and
420 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
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
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
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
Binary file added
BIN
+15.9 KB
Other/Products/Debug/WeChatPlugin.framework/Resources/Base.lproj/TKAboutWindowController.nib
Binary file not shown.
Binary file added
BIN
+14.5 KB
...cts/Debug/WeChatPlugin.framework/Resources/Base.lproj/TKRemoteControlWindowController.nib
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
Binary file modified
BIN
+126 Bytes
(100%)
Other/Products/Debug/WeChatPlugin.framework/Resources/en.lproj/Localizable.strings
Binary file not shown.
Binary file modified
BIN
+94 Bytes
(100%)
Other/Products/Debug/WeChatPlugin.framework/Resources/zh-Hans.lproj/Localizable.strings
Binary file not shown.
Binary file modified
BIN
+94 Bytes
(100%)
Other/Products/Debug/WeChatPlugin.framework/Resources/zh-Hant.lproj/Localizable.strings
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
Binary file added
BIN
+15.9 KB
.../Debug/WeChatPlugin.framework/Versions/A/Resources/Base.lproj/TKAboutWindowController.nib
Binary file not shown.
Binary file added
BIN
+14.5 KB
...eChatPlugin.framework/Versions/A/Resources/Base.lproj/TKRemoteControlWindowController.nib
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
Binary file modified
BIN
+126 Bytes
(100%)
...r/Products/Debug/WeChatPlugin.framework/Versions/A/Resources/en.lproj/Localizable.strings
Binary file not shown.
Binary file modified
BIN
+94 Bytes
(100%)
...ducts/Debug/WeChatPlugin.framework/Versions/A/Resources/zh-Hans.lproj/Localizable.strings
Binary file not shown.
Binary file modified
BIN
+94 Bytes
(100%)
...ducts/Debug/WeChatPlugin.framework/Versions/A/Resources/zh-Hant.lproj/Localizable.strings
Binary file not shown.
Binary file modified
BIN
-4.27 KB
(99%)
Other/Products/Debug/WeChatPlugin.framework/Versions/A/WeChatPlugin
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
Binary file added
BIN
+15.9 KB
.../WeChatPlugin.framework/Versions/Current/Resources/Base.lproj/TKAboutWindowController.nib
Binary file not shown.
Binary file added
BIN
+14.5 KB
...lugin.framework/Versions/Current/Resources/Base.lproj/TKRemoteControlWindowController.nib
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
Binary file modified
BIN
+126 Bytes
(100%)
...ucts/Debug/WeChatPlugin.framework/Versions/Current/Resources/en.lproj/Localizable.strings
Binary file not shown.
Binary file modified
BIN
+94 Bytes
(100%)
...Debug/WeChatPlugin.framework/Versions/Current/Resources/zh-Hans.lproj/Localizable.strings
Binary file not shown.
Binary file modified
BIN
+94 Bytes
(100%)
...Debug/WeChatPlugin.framework/Versions/Current/Resources/zh-Hant.lproj/Localizable.strings
Binary file not shown.
Binary file modified
BIN
-4.27 KB
(99%)
Other/Products/Debug/WeChatPlugin.framework/Versions/Current/WeChatPlugin
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,33 @@ | ||
#!/bin/bash | ||
|
||
wechat_path="/Applications/WeChat.app" | ||
|
||
if [ ! -d "$wechat_path" ];then | ||
wechat_path="/Applications/微信.app" | ||
if [ ! -d "$wechat_path" ];then | ||
echo -e "\n\n应用程序文件夹中未发现微信,请检查微信是否有重命名或者移动路径位置" | ||
exit | ||
fi | ||
fi | ||
|
||
app_name="WeChat" | ||
shell_path="$(dirname "$0")" | ||
framework_name="WeChatPlugin" | ||
app_bundle_path="${wechat_path}/Contents/MacOS" | ||
app_executable_path="${app_bundle_path}/${app_name}" | ||
app_executable_backup_path="${app_executable_path}_backup" | ||
framework_path="${app_bundle_path}/${framework_name}.framework" | ||
|
||
# 对 WeChat 赋予权限 | ||
if [ ! -w "$wechat_path" ];then | ||
sudo chown -R $(whoami) "$wechat_path" | ||
fi | ||
|
||
# 判断是否已经存在备份文件 | ||
if [ ! -f "$app_executable_backup_path" ];then | ||
# 备份 WeChat 原始可执行文件 | ||
cp "$app_executable_path" "$app_executable_backup_path" | ||
fi | ||
|
||
cp -r "${shell_path}/${framework_name}.framework" ${app_bundle_path} | ||
${shell_path}/insert_dylib --all-yes "${framework_path}/${framework_name}" "$app_executable_backup_path" "$app_executable_path" |
Oops, something went wrong.