QiuChenly / InjectLib

你知道我要说什么
GNU General Public License v3.0
1.2k stars 157 forks source link

CleanMyMac (Setapp) 最新版无法注入 #60

Open shirok1 opened 1 week ago

shirok1 commented 1 week ago

检查事项

描述问题

chmod: /Applications/Setapp/CleanMyMac X.app: No such file or directory
xattr: No such file: /Applications/Setapp/CleanMyMac X.app
Traceback (most recent call last):
  File "/Volumes/Code/InjectLib/main.py", line 464, in <module>
    main()
    ~~~~^^
  File "/Volumes/Code/InjectLib/main.py", line 320, in main
    ["sudo", "pkill", "-f", getAppMainExecutable(app_base_locate)]
                            ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
  File "/Volumes/Code/InjectLib/main.py", line 127, in getAppMainExecutable
    with open(f"{app_base}/Contents/Info.plist", "rb") as f:
         ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: '/Applications/Setapp/CleanMyMac X.app/Contents/Info.plist'

疑似因为 .app 已改名为 CleanMyMac.app

手动修改 config.json 依然无法工作

cp: /Applications/Setapp/CleanMyMac.app/Contents/Frameworks/Announcements.framework/Versions/A/Announcements: No such file or directory
Traceback (most recent call last):
  File "/Volumes/Code/InjectLib/main.py", line 464, in <module>
    main()
    ~~~~^^
  File "/Volumes/Code/InjectLib/main.py", line 372, in main
    f"{app_base_locate}{i}/Contents/MacOS/{getAppMainExecutable(app_base_locate+i)}"
                                           ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^
  File "/Volumes/Code/InjectLib/main.py", line 127, in getAppMainExecutable
    with open(f"{app_base}/Contents/Info.plist", "rb") as f:
         ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: '/Applications/Setapp/CleanMyMac.app/Contents/Library/LoginItems/CleanMyMac Menu.app/Contents/Info.plist'

最小复现

  1. 安装 Setapp 并注入 com.setapp.DesktopClient
  2. 用 Setapp 安装 CleanMyMac
  3. 注入 com.macpaw.CleanMyMac-setapp

系统情况

系统信息

OS: macOS 15.1
CPU: M1
Memory: 16 GB

是否修改了nvram的内核启动参数(黑苹果)

No response

是否使用了需要修改系统文件的工具(黑苹果)

No response

期望行为

能完成注入并激活

额外信息

https://qiuchenlyopensource.github.io/Documentaions/setapp.html#reinject-after-updating-or-downloading 没太看懂这句话意思是重新执行 main.py 注入 com.setapp.DesktopClient 吗

Crash Log

No response

QiuChenly commented 1 week ago

这个app现在不是通杀的 新版本他们改动很大 文档已经过时。

Parsifa1 commented 6 days ago

@shirok1 直接下载 cleanmymac 本体的 这个 包, 我测试过 应该是可以成功注入的

QiuChenly commented 2 days ago

也可以考虑从频道里找到打包好的版本直接可以激活。