以前的一篇文章 Cno修饰版
您可以不经过Edgeless团队的同意自由更改发布插件作品,但是请不要忘记您的道德操守
我们不希望看到有违反Edgeless三无精神(无劫持、无广告、无收费)或是违反中华人民共和国相关法律条款的作品出现,也不会承认此类作品与我们有任何关系
继续开发视为您已经同意此条款
如果您希望能上架您的插件包,请加入内测交流QQ群进行提交
此章节是“开发插件包”的补充章节,帮助较为复杂插件包的简化开发,要求您已了解Edgeless插件包开发的基本步骤
以微信PC端为例
目前准备的有↓
微信安装包
VMware workstation
Edgeless暴力封装专用虚拟机镜像
Procmon 分析工具
1.使用VMware导入准备的虚拟机镜像

2.启动虚拟机
3.将微信安装程序拖放至虚拟机
4.运行桌面“Cameyo单文件打包制作v3.1.1530.0汉化增强绿色版”文件夹内的“扫描安装过程并打包.exe”

5.等待扫描结束
6.扫描结束后会出现如下窗口↓

7.此时运行微信安装程序
8.按照正常方式安装

9.点击安装已完成并再次耐心等待扫描结束
10.建立一个Edgeless插件目录

wechat.wcs是插件的加载代码,符合插件开发文档
exec =!"X:\Program Files\Edgeless\Wechat\setup.cmd" link "X:\Users\Default\Desktop\Wechat","X:\Program Files (x86)\Tencent\WeChat\WeChat.exe" file "X:\Program Files\Edgeless\Wechat"
Wechat文件夹内是插件的内容包
setup.cmd的任务是进行安装过程的模仿
copy *.dll X:\Windows\SysWOW64*.dll copy *.dll X:\Windows\system32*.dll regedit /s "X:\Program Files\Edgeless\Wechat\reg.reg" xcopy "x:\Program Files\Edgeless\Wechat\System*" "%system%*" /s /e /h /f /y xcopy "x:\Program Files\Edgeless\Wechat\Windows*" "%Windows%*" /s /e /h /f /y xcopy "x:\Program Files\Edgeless\Wechat\Personal*" "%Personal%*" /s /e /h /f /y xcopy "x:\Program Files\Edgeless\Wechat\Appdata*" "%Appdata%*" /s /e /h /f /y xcopy "x:\Program Files\Edgeless\Wechat\Profiles*" "%Profiles%*" /s /e /h /f /y xcopy "x:\Program Files\Edgeless\Wechat\Local Appdata*" "%Local Appdata%*" /s /e /h /f /y xcopy "x:\Program Files\Edgeless\Wechat\Common AppData*" "%Common AppData%*" /s /e /h /f /y xcopy "x:\Program Files\Edgeless\Wechat\Program Files(x86)*" "%ProgramFiles(x86)%*" /s /e /h /f /y xcopy "x:\Program Files\Edgeless\Wechat\Program Files*" "%ProgramFiles%*" /s /e /h /f /y
reg.reg存储的是程序安装修改的注册表项
打开“桌面Cameyo单文件打包制作v3.1.1530.0汉化增强绿色版”文件夹内的“包编辑器By风之暇想.exe”
16.打开文档文件夹内的打包exe

17.可以看到如图所示页面

18.打开注册表选项卡,并点击如图所示按钮导出注册表至工程目录内的reg.reg

18.打开文件选项卡,并点击如图所示按钮保存除Icons和Logs以外文件

19.运行Procmon和微信,并在微信上进行诸如登录之类的常用操作

20.点击如图所示按钮进行筛选

21.筛选条件如图↓

22.对事件逐个按下ctrl+k按键并检查调用的函数库

23.将edgeless缺少的函数库复制到项目文件夹的Wechat的文件夹根目录

24.对Procmon中筛选出的所有事件进行相同操作
25.适当修改wechat.wcs和setup.cmd以创建快捷方式
26.为避免错误,setup.cmd内最好使用绝对路径
copy "x:\Program Files\Edgeless\Wechat*.dll" "X:\Windows\SysWOW64*.dll" copy "x:\Program Files\Edgeless\Wechat*.dll" "X:\Windows\system32*.dll" xcopy "x:\Program Files\Edgeless\Wechat\System*" "X:\Windows\System32*" /s /e /h /f /y xcopy "x:\Program Files\Edgeless\Wechat\Windows*" "X:\Windows*" /s /e /h /f /y xcopy "x:\Program Files\Edgeless\Wechat\Personal*" "X:\Users\Default\Documents*" /s /e /h /f /y xcopy "x:\Program Files\Edgeless\Wechat\Appdata*" "X:\Users\Default\AppData*" /s /e /h /f /y xcopy "x:\Program Files\Edgeless\Wechat\Profiles*" "X:\Users\Default*" /s /e /h /f /y xcopy "x:\Program Files\Edgeless\Wechat\Local Appdata*" "X:\Users\Default\AppData\Local*" /s /e /h /f /y xcopy "x:\Program Files\Edgeless\Wechat\Common AppData*" "X:\ProgramData*" /s /e /h /f /y xcopy "x:\Program Files\Edgeless\Wechat\Program Files(x86)*" "X:\Program Files (x86)*" /s /e /h /f /y xcopy "x:\Program Files\Edgeless\Wechat\Program Files*" "X:\Program Files*" /s /e /h /f /y regedit /s "X:\Program Files\Edgeless\Wechat\reg.reg"
27.将工程目录封装为7z插件包

28.得到的7z文件便是插件包了