Files
Ananta-ps/tools/python/README.txt
T

37 lines
1.9 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
tools\python —— 启动器自带的便携 Python(请勿删除)
======================================================
这是什么
--------
官方的 Windows 版「嵌入式 Python」(embeddable package),不是安装包,只是解压出来的一堆文件。
里面已经装好 frida,启动器用它来拉起注入器(tools\AnantaInjector\unified_loader.py)。
python.exe 3.13.14
Lib\site-packages\frida frida 17.18.0(注入器唯一的三方依赖)
为什么要有它
------------
以前启动器里写死了一个开发机上的 python 路径,发给别人就会弹
「找不到装了 frida 的 python」,而且连服务端都起不来。
现在改成随包分发自带环境:拿到这个文件夹的人不需要装任何东西,直接双击 一键启动.exe 即可。
分发时必带
----------
把这个服务端目录拷给别人时,**tools\python 整个目录必须一起拷**,否则:
· 启动器探测不到 python ⇒ 注入器卡片副标题会标红「未检测到 frida 环境」
· 只影响注入器(小游戏相关),服务端和游戏本体照常能起
体积:约 161 MB,其中 frida 自己占 128 MB(frida 的 _frida.pyd 就这么大,减不掉)。
改动 / 排障
-----------
· python313._pth 里必须保留 `import site` 那一行 —— 嵌入式 Python 默认不加载 site,
不打开就找不到 Lib\site-packages,也就 import 不了 frida。
· 想换成自己装的 python:在 tools\launcher\settings.json 里加
"pythonExe": "C:\\你的路径\\python.exe"
然后在那个 python 里跑一次 python -m pip install frida
(settings.json 里指定的优先级最高,高于本目录)
· 排障看日志:tools\launcher\launcher.log,开头有类似
python = ...\tools\python\python.exe frida 可用
这一行写的是实际用到的解释器和 frida 是否可用。