2020-11-16 20:57:20 +08:00
# WechatExporter
2020-11-17 08:36:19 +08:00
本程序参考 https://github.com/stomakun/WechatExport-iOS 修改成C++来实现,移除对dotnet的依赖,方便在MacOS下的运行。
2020-11-16 20:57:20 +08:00
2020-11-17 08:36:19 +08:00
## 操作步骤:
1. 通过iTunes将手机备份到电脑上(建议备份前杀掉微信),Windows操作系统一般位于目录:C:\用户[用户名]\AppData\Roaming\Apple Computer\MobileSync\Backup\。Android手机可以找一个iPad/iPhone设备,把聊天记录迁移到iPad/iPhone设备上,然后通过iTunes备份到电脑上。
2020-12-07 20:44:44 +08:00
2. 下载本代码的执行文件:[Windows x64版本 ](https://github.com/BlueMatthew/WechatExporter/releases/download/v1.5/v1.5_x64_win.zip ) 或者 [MacOS x64版本 ](https://github.com/BlueMatthew/WechatExporter/releases/download/v1.5/v1.5_x64_macos.zip ),然后解压压缩文件
2020-11-17 08:36:19 +08:00
2020-11-18 14:33:49 +08:00
3. 执行解压出来的WechatExport.exe/WechatExporter (Windows下如果运行报缺少必须的dll文件,请安装[Visual C++ 2017 redist ](https://aka.ms/vs/16/release/vc_redist.x64.exe )后再尝试运行)
2020-11-17 08:36:19 +08:00
2020-11-30 21:48:23 +08:00
4. 按界面提示进行操作。
2020-12-12 15:35:38 +08:00
 
2020-11-17 08:36:19 +08:00
## 模版修改
解压目录下的res\templates(MacOS版本位于Contents\Resources\res)子目录里存放了输出聊天记录的html页面模版,其中通过两个%包含起来的字符串,譬如,%%NAME%%,不要修改之外,其它页面内容和格式都可以自行调整。
## 系统依赖:
2020-11-18 14:35:21 +08:00
Windows版本:Windows 7+, [Visual C++ 2017 redist ](https://aka.ms/vs/16/release/vc_redist.x64.exe ) at [The latest supported Visual C++ downloads ](https://support.microsoft.com/en-us/help/2977003/the-latest-supported-visual-c-downloads )
MacOS版本:MacOS 10.10(Yosemite)+
2020-11-16 20:57:20 +08:00
2020-11-17 08:36:19 +08:00
## 程序编译
2020-11-16 20:57:20 +08:00
程序依赖如下第三方库:
2020-11-18 11:42:40 +08:00
- libxml2: http://www.xmlsoft.org/
- libcurl: https://curl.se/libcurl/
2020-11-18 15:57:21 +08:00
- libsqlite3: https://www.sqlite.org/index.html
2020-11-18 11:42:40 +08:00
- libprotobuf: https://github.com/protocolbuffers/protobuf
- libjsoncpp: https://github.com/open-source-parsers/jsoncpp
2020-11-18 15:57:21 +08:00
- lame: http://lame.sourceforge.net/
2020-11-18 11:42:40 +08:00
- silk: https://github.com/collects/silk (也参考了: https://github.com/kn007/silk-v3-decoder)
- libplist: https://github.com/libimobiledevice/libplist https://github.com/libimobiledevice-win32/libplist
- libiconv(windows only): https://www.gnu.org/software/libiconv/
2020-11-27 21:27:24 +08:00
- openssl(windows only): https://github.com/openssl/openssl
- WTL (windows only): https://sourceforge.net/projects/wtl/
2020-11-18 11:32:12 +08:00
MacOS下,libxml2,libcurl,libsqlite3直接使用了Xcode自带的库,其它第三方库需自行编译。
libmp3lame需手动删除文件include/libmp3lame.sym中的行:lame_init_old
2020-11-16 20:57:20 +08:00
2020-11-18 11:43:17 +08:00
Windows环境下,silk自带Visual Studio工程文件,可以直接利用Visual Studio编译,其余除了libplist之外,都通过vcpkg可以编译。libplist在vcpkg中也存在,但是在编译x64-windows-static target的时候报了错,于是直接通过Visual Studio建了工程进行编译。