NapNeko / NapCat-Mac-Installer

NapCat on macOS
MIT License
2 stars 0 forks source link

MacOS安装问题 #2

Closed qinjin2 closed 3 days ago

qinjin2 commented 4 days ago

macOS版本 14.3.1 使用NapCat.MacOs - MacOs安装工具进行安装 FF58B9B6F62A6510CB2A8943ABB34AC2 在执行sudo /Applications/QQ.app/Contents/MacOS/QQ --no-sandbox命令想启动napcat的时候,报错: 649FB94128C3AB051E5802E30E9122E5 命令行的日志如下: sudo /Applications/QQ.app/Contents/MacOS/QQ --no-sandbox Password: 2024-11-28 16:59:35.098 QQ[63356:23065531] IsVersionsDirExist: /var/root/Library/Containers/com.tencent.qq/Data/Library/Application Support/QQ/versions/ 2024-11-28 16:59:35.098 QQ[63356:23065531] IsVersionsDirExist: exists: 0 LoadFromDefaultFramework framework_path: /Applications/QQ.app/Contents/Frameworks/QQNT.framework/QQNT not mini app. IsVersionsDirExist: /var/root/Library/Containers/com.tencent.qq/Data/Library/Application Support/QQ/versions/ IsVersionsDirExist: exists: 0 module_path:/Applications/QQ.app/Contents/Frameworks/QQNT.framework/Versions/A/QQNT [preload] succeeded. /Applications/QQ.app/Contents/Resources/app/major.node [preload] succeeded. /Applications/QQ.app/Contents/Resources/app/wrapper.node [preload] succeeded. /Applications/QQ.app/Contents/Resources/app/app_launcher/launcher.node 2024-11-28 16:59:35.386 QQ[63356:23065531] TISFileInterrogator updateSystemInputSources false but old data invalid: currentCacheHeaderPtr nonNULL? 0, ->cacheFormatVersion 0, ->magicCookie 00000000, inputSourceTableCountSys 0 Keyboard Layouts: duplicate keyboard layout identifier -17410. Keyboard Layouts: keyboard layout identifier -17410 has been replaced with -28673. Keyboard Layouts: duplicate keyboard layout identifier -30769. Keyboard Layouts: keyboard layout identifier -30769 has been replaced with -28674. Keyboard Layouts: duplicate keyboard layout identifier -14934. Keyboard Layouts: keyboard layout identifier -14934 has been replaced with -28675. 2024-11-28 16:59:50.327 QQ[63356:23065531] WARNING: Secure coding is automatically enabled for restorable state! However, not on all supported macOS versions of this application. Opt-in to secure coding explicitly by implementing NSApplicationDelegate.applicationSupportsSecureRestorableState:. 2024-11-28 16:59:50.698 QQ Helper (GPU)[63359:23065851] IsVersionsDirExist: /var/root/Library/Containers/com.tencent.qq/Data/Library/Application Support/QQ/versions/ 2024-11-28 16:59:50.698 QQ Helper[63360:23065855] IsVersionsDirExist: /var/root/Library/Containers/com.tencent.qq/Data/Library/Application Support/QQ/versions/ 2024-11-28 16:59:50.698 QQ Helper (GPU)[63359:23065851] IsVersionsDirExist: exists: 0 LoadFromDefaultFramework 2024-11-28 16:59:50.699 QQ Helper[63360:23065855] IsVersionsDirExist: exists: 0 LoadFromDefaultFramework framework_path: /Applications/QQ.app/Contents/Frameworks/QQNT.framework/QQNT framework_path: /Applications/QQ.app/Contents/Frameworks/QQNT.framework/QQNT module_path:/Applications/QQ.app/Contents/Frameworks/QQNT.framework/Versions/A/QQNT module_path:/Applications/QQ.app/Contents/Frameworks/QQNT.framework/Versions/A/QQNT

补充说明,尝试先 给这个js文件chmod +x 再执行sudo /Applications/QQ.app/Contents/MacOS/QQ --no-sandbox也会出现一样的问题

hguandl commented 3 days ago

@qinjin2 不加 sudo 试试看

qinjin2 commented 3 days ago

@hguandl 不加sudo日志是这样 /Applications/QQ.app/Contents/MacOS/QQ --no-sandbox 2024-11-29 14:24:07.302 QQ[82515:23690858] IsVersionsDirExist: /Users/mac/Library/Containers/com.tencent.qq/Data/Library/Application Support/QQ/versions/ 2024-11-29 14:24:07.302 QQ[82515:23690858] IsVersionsDirExist: exists: 1 2024-11-29 14:24:07.302 QQ[82515:23690858] IsVersionsDirExist: isDir: 1 2024-11-29 14:24:07.302 QQ[82515:23690858] version_config_filename : /Users/mac/Library/Containers/com.tencent.qq/Data/Library/Application Support/QQ/versions/config.json 2024-11-29 14:24:07.303 QQ[82515:23690858] app_package_filename : /Applications/QQ.app/Contents/Resources/app/package.json 2024-11-29 14:24:07.303 QQ[82515:23690858] config_build_id: 22578 2024-11-29 14:24:07.303 QQ[82515:23690858] config_base_version: 6.9.31-22578 2024-11-29 14:24:07.303 QQ[82515:23690858] config_current_version: 6.9.61-29927 2024-11-29 14:24:07.303 QQ[82515:23690858] app_build_version: 22578 2024-11-29 14:24:07.303 QQ[82515:23690858] notarized: 1 2024-11-29 14:24:07.303 QQ[82515:23690858] retryTimes: 0 2024-11-29 14:24:07.303 QQ[82515:23690858] system version: 14.3.1 LoadFromHotUpdateVersion, config_current_version: 6.9.61-29927 , need_startup_app:0 framework_path: /Users/mac/Library/Containers/com.tencent.qq/Data/Library/Application Support/QQ/versions/6.9.61-29927/QQUpdate.app/Contents/Frameworks/QQNT.framework/QQNT not mini app. IsVersionsDirExist: /Users/mac/Library/Containers/com.tencent.qq/Data/Library/Application Support/QQ/versions/ IsVersionsDirExist: exists: 1 IsVersionsDirExist: isDir: 1 version_config_filename :/Users/mac/Library/Containers/com.tencent.qq/Data/Library/Application Support/QQ/versions/config.json app_package_filename :/Applications/QQ.app/Contents/Resources/app/package.json config_build_id :22578 config_base_version :6.9.31-22578 config_current_version :6.9.61-29927 app_build_version :22578 [preload] succeeded. /Users/mac/Library/Containers/com.tencent.qq/Data/Library/Application Support/QQ/versions/6.9.61-29927/QQUpdate.app/Contents/Resources/app/major.node [preload] succeeded. /Users/mac/Library/Containers/com.tencent.qq/Data/Library/Application Support/QQ/versions/6.9.61-29927/QQUpdate.app/Contents/Resources/app/wrapper.node resourcesPath: /Users/mac/Library/Containers/com.tencent.qq/Data/Library/Application Support/QQ/versions/6.9.61-29927/QQUpdate.app/Contents/Resources [preload] register done. major.node [bytecode]current path: /Users/mac/Library/Containers/com.tencent.qq/Data/Library/Application Support/QQ/versions/6.9.61-29927/QQUpdate.app/Contents/Resources/app/application.asar/ 2024-11-29 14:24:07.756 QQ Helper (GPU)[82516:23690896] IsVersionsDirExist: /Users/mac/Library/Containers/com.tencent.qq/Data/Library/Application Support/QQ/versions/ 2024-11-29 14:24:07.757 QQ Helper (GPU)[82516:23690896] IsVersionsDirExist: exists: 1 2024-11-29 14:24:07.757 QQ Helper (GPU)[82516:23690896] IsVersionsDirExist: isDir: 1 2024-11-29 14:24:07.757 QQ Helper (GPU)[82516:23690896] version_config_filename : /Users/mac/Library/Containers/com.tencent.qq/Data/Library/Application Support/QQ/versions/config.json 2024-11-29 14:24:07.757 QQ Helper (GPU)[82516:23690896] app_package_filename : /Applications/QQ.app/Contents/Resources/app/package.json 2024-11-29 14:24:07.757 QQ Helper (GPU)[82516:23690896] config_build_id: 22578 2024-11-29 14:24:07.757 QQ Helper (GPU)[82516:23690896] config_base_version: 6.9.31-22578 2024-11-29 14:24:07.757 QQ Helper (GPU)[82516:23690896] config_current_version: 6.9.61-29927 2024-11-29 14:24:07.757 QQ Helper (GPU)[82516:23690896] app_build_version: 22578 2024-11-29 14:24:07.757 QQ Helper (GPU)[82516:23690896] notarized: 1 2024-11-29 14:24:07.757 QQ Helper (GPU)[82516:23690896] retryTimes: 0 2024-11-29 14:24:07.757 QQ Helper (GPU)[82516:23690896] system version: 14.3.1 LoadFromHotUpdateVersion, config_current_version: 6.9.61-29927 , need_startup_app:0 framework_path: /Users/mac/Library/Containers/com.tencent.qq/Data/Library/Application Support/QQ/versions/6.9.61-29927/QQUpdate.app/Contents/Frameworks/QQNT.framework/QQNT 2024-11-29 14:24:07.773 QQ Helper[82517:23690902] IsVersionsDirExist: /Users/mac/Library/Containers/com.tencent.qq/Data/Library/Application Support/QQ/versions/ 2024-11-29 14:24:07.773 QQ Helper[82517:23690902] IsVersionsDirExist: exists: 1 2024-11-29 14:24:07.773 QQ Helper[82517:23690902] IsVersionsDirExist: isDir: 1 2024-11-29 14:24:07.773 QQ Helper[82517:23690902] version_config_filename : /Users/mac/Library/Containers/com.tencent.qq/Data/Library/Application Support/QQ/versions/config.json 2024-11-29 14:24:07.773 QQ Helper[82517:23690902] app_package_filename : /Applications/QQ.app/Contents/Resources/app/package.json 2024-11-29 14:24:07.773 QQ Helper[82517:23690902] config_build_id: 22578 2024-11-29 14:24:07.773 QQ Helper[82517:23690902] config_base_version: 6.9.31-22578 2024-11-29 14:24:07.773 QQ Helper[82517:23690902] config_current_version: 6.9.61-29927 2024-11-29 14:24:07.773 QQ Helper[82517:23690902] app_build_version: 22578 2024-11-29 14:24:07.773 QQ Helper[82517:23690902] notarized: 1 2024-11-29 14:24:07.773 QQ Helper[82517:23690902] retryTimes: 0 2024-11-29 14:24:07.773 QQ Helper[82517:23690902] system version: 14.3.1 LoadFromHotUpdateVersion, config_current_version: 6.9.61-29927 , need_startup_app:0 framework_path: /Users/mac/Library/Containers/com.tencent.qq/Data/Library/Application Support/QQ/versions/6.9.61-29927/QQUpdate.app/Contents/Frameworks/QQNT.framework/QQNT 2024-11-29 14:24:07.907 QQ Helper (Renderer)[82518:23690932] IsVersionsDirExist: /Users/mac/Library/Containers/com.tencent.qq/Data/Library/Application Support/QQ/versions/ 2024-11-29 14:24:07.907 QQ Helper (Renderer)[82518:23690932] IsVersionsDirExist: exists: 1 2024-11-29 14:24:07.907 QQ Helper (Renderer)[82518:23690932] IsVersionsDirExist: isDir: 1 2024-11-29 14:24:07.907 QQ Helper (Renderer)[82518:23690932] version_config_filename : /Users/mac/Library/Containers/com.tencent.qq/Data/Library/Application Support/QQ/versions/config.json 2024-11-29 14:24:07.907 QQ Helper (Renderer)[82518:23690932] app_package_filename : /Applications/QQ.app/Contents/Resources/app/package.json 2024-11-29 14:24:07.907 QQ Helper (Renderer)[82518:23690932] config_build_id: 22578 2024-11-29 14:24:07.907 QQ Helper (Renderer)[82518:23690932] config_base_version: 6.9.31-22578 2024-11-29 14:24:07.907 QQ Helper (Renderer)[82518:23690932] config_current_version: 6.9.61-29927 2024-11-29 14:24:07.907 QQ Helper (Renderer)[82518:23690932] app_build_version: 22578 2024-11-29 14:24:07.907 QQ Helper (Renderer)[82518:23690932] notarized: 1 2024-11-29 14:24:07.907 QQ Helper (Renderer)[82518:23690932] retryTimes: 0 2024-11-29 14:24:07.908 QQ Helper (Renderer)[82518:23690932] system version: 14.3.1 LoadFromHotUpdateVersion, config_current_version: 6.9.61-29927 , need_startup_app:0 framework_path: /Users/mac/Library/Containers/com.tencent.qq/Data/Library/Application Support/QQ/versions/6.9.61-29927/QQUpdate.app/Contents/Frameworks/QQNT.framework/QQNT IsVersionsDirExist: /Users/mac/Library/Containers/com.tencent.qq/Data/Library/Application Support/QQ/versions/ IsVersionsDirExist: exists: 1 IsVersionsDirExist: isDir: 1 version_config_filename :/Users/mac/Library/Containers/com.tencent.qq/Data/Library/Application Support/QQ/versions/config.json app_package_filename :/Applications/QQ.app/Contents/Resources/app/package.json config_build_id :22578 config_base_version :6.9.31-22578 config_current_version :6.9.61-29927 app_build_version :22578 [preload] succeeded. /Users/mac/Library/Containers/com.tencent.qq/Data/Library/Application Support/QQ/versions/6.9.61-29927/QQUpdate.app/Contents/Resources/app/major.node Error occurred in handler for 'get-remote-win': Error: No handler registered for 'get-remote-win' at WebContents. (node:electron/js2c/browser_init:2:82968) at WebContents.emit (node:events:519:28) [bytecode]current path: /Users/mac/Library/Containers/com.tencent.qq/Data/Library/Application Support/QQ/versions/6.9.61-29927/QQUpdate.app/Contents/Resources/app/application.asar/ [preload] register done. wrapper.node 2024-11-29 14:24:10.412 QQ[82515:23690858] NSWindow does not support nonactivating panel styleMask 0x80 2024-11-29 14:24:10.415 QQ[82515:23690858] NSWindow does not support nonactivating panel styleMask 0x80 2024-11-29 14:24:10.425 QQ Helper (Renderer)[82525:23691095] IsVersionsDirExist: /Users/mac/Library/Containers/com.tencent.qq/Data/Library/Application Support/QQ/versions/ 2024-11-29 14:24:10.425 QQ Helper (Renderer)[82525:23691095] IsVersionsDirExist: exists: 1 2024-11-29 14:24:10.425 QQ Helper (Renderer)[82525:23691095] IsVersionsDirExist: isDir: 1 2024-11-29 14:24:10.425 QQ Helper (Renderer)[82525:23691095] version_config_filename : /Users/mac/Library/Containers/com.tencent.qq/Data/Library/Application Support/QQ/versions/config.json 2024-11-29 14:24:10.426 QQ Helper (Renderer)[82525:23691095] app_package_filename : /Applications/QQ.app/Contents/Resources/app/package.json 2024-11-29 14:24:10.426 QQ Helper (Renderer)[82525:23691095] config_build_id: 22578 2024-11-29 14:24:10.426 QQ Helper (Renderer)[82525:23691095] config_base_version: 6.9.31-22578 2024-11-29 14:24:10.426 QQ Helper (Renderer)[82525:23691095] config_current_version: 6.9.61-29927 2024-11-29 14:24:10.426 QQ Helper (Renderer)[82525:23691095] app_build_version: 22578 2024-11-29 14:24:10.426 QQ Helper (Renderer)[82525:23691095] notarized: 1 2024-11-29 14:24:10.426 QQ Helper (Renderer)[82525:23691095] retryTimes: 0 2024-11-29 14:24:10.426 QQ Helper (Renderer)[82525:23691095] system version: 14.3.1 LoadFromHotUpdateVersion, config_current_version: 6.9.61-29927 , need_startup_app:0 framework_path: /Users/mac/Library/Containers/com.tencent.qq/Data/Library/Application Support/QQ/versions/6.9.61-29927/QQUpdate.app/Contents/Frameworks/QQNT.framework/QQNT [bytecode]current path: /Users/mac/Library/Containers/com.tencent.qq/Data/Library/Application Support/QQ/versions/6.9.61-29927/QQUpdate.app/Contents/Resources/app/application.asar/ [bytecode]current path: /Users/mac/Library/Containers/com.tencent.qq/Data/Library/Application Support/QQ/versions/6.9.61-29927/QQUpdate.app/Contents/Resources/app/application.asar/ 2024-11-29 14:24:10.442 QQ Helper (Renderer)[82526:23691099] IsVersionsDirExist: /Users/mac/Library/Containers/com.tencent.qq/Data/Library/Application Support/QQ/versions/ 2024-11-29 14:24:10.443 QQ Helper (Renderer)[82526:23691099] IsVersionsDirExist: exists: 1 2024-11-29 14:24:10.443 QQ Helper (Renderer)[82526:23691099] IsVersionsDirExist: isDir: 1 2024-11-29 14:24:10.443 QQ Helper (Renderer)[82526:23691099] version_config_filename : /Users/mac/Library/Containers/com.tencent.qq/Data/Library/Application Support/QQ/versions/config.json 2024-11-29 14:24:10.443 QQ Helper (Renderer)[82526:23691099] app_package_filename : /Applications/QQ.app/Contents/Resources/app/package.json 2024-11-29 14:24:10.443 QQ Helper (Renderer)[82526:23691099] config_build_id: 22578 2024-11-29 14:24:10.443 QQ Helper (Renderer)[82526:23691099] config_base_version: 6.9.31-22578 2024-11-29 14:24:10.443 QQ Helper (Renderer)[82526:23691099] config_current_version: 6.9.61-29927 2024-11-29 14:24:10.443 QQ Helper (Renderer)[82526:23691099] app_build_version: 22578 2024-11-29 14:24:10.443 QQ Helper (Renderer)[82526:23691099] notarized: 1 2024-11-29 14:24:10.443 QQ Helper (Renderer)[82526:23691099] retryTimes: 0 2024-11-29 14:24:10.444 QQ Helper (Renderer)[82526:23691099] system version: 14.3.1 LoadFromHotUpdateVersion, config_current_version: 6.9.61-29927 , need_startup_app:0 framework_path: /Users/mac/Library/Containers/com.tencent.qq/Data/Library/Application Support/QQ/versions/6.9.61-29927/QQUpdate.app/Contents/Frameworks/QQNT.framework/QQNT IsVersionsDirExist: /Users/mac/Library/Containers/com.tencent.qq/Data/Library/Application Support/QQ/versions/ IsVersionsDirExist: exists: 1 IsVersionsDirExist: isDir: 1 version_config_filename :/Users/mac/Library/Containers/com.tencent.qq/Data/Library/Application Support/QQ/versions/config.json app_package_filename :/Applications/QQ.app/Contents/Resources/app/package.json config_build_id :22578 config_base_version :6.9.31-22578 config_current_version :6.9.61-29927 app_build_version :22578 [preload] succeeded. /Users/mac/Library/Containers/com.tencent.qq/Data/Library/Application Support/QQ/versions/6.9.61-29927/QQUpdate.app/Contents/Resources/app/major.node IsVersionsDirExist: /Users/mac/Library/Containers/com.tencent.qq/Data/Library/Application Support/QQ/versions/ IsVersionsDirExist: exists: 1 IsVersionsDirExist: isDir: 1 version_config_filename :/Users/mac/Library/Containers/com.tencent.qq/Data/Library/Application Support/QQ/versions/config.json app_package_filename :/Applications/QQ.app/Contents/Resources/app/package.json config_build_id :22578 config_base_version :6.9.31-22578 config_current_version :6.9.61-29927 app_build_version :22578 [preload] succeeded. /Users/mac/Library/Containers/com.tencent.qq/Data/Library/Application Support/QQ/versions/6.9.61-29927/QQUpdate.app/Contents/Resources/app/major.node [preload] register done. major.node 2024-11-29 14:24:11.880 QQ Helper (Renderer)[82534:23691189] IsVersionsDirExist: /Users/mac/Library/Containers/com.tencent.qq/Data/Library/Application Support/QQ/versions/ 2024-11-29 14:24:11.880 QQ Helper (Renderer)[82534:23691189] IsVersionsDirExist: exists: 1 2024-11-29 14:24:11.880 QQ Helper (Renderer)[82534:23691189] IsVersionsDirExist: isDir: 1 2024-11-29 14:24:11.880 QQ Helper (Renderer)[82534:23691189] version_config_filename : /Users/mac/Library/Containers/com.tencent.qq/Data/Library/Application Support/QQ/versions/config.json 2024-11-29 14:24:11.880 QQ Helper (Renderer)[82534:23691189] app_package_filename : /Applications/QQ.app/Contents/Resources/app/package.json 2024-11-29 14:24:11.880 QQ Helper (Renderer)[82534:23691189] config_build_id: 22578 2024-11-29 14:24:11.880 QQ Helper (Renderer)[82534:23691189] config_base_version: 6.9.31-22578 2024-11-29 14:24:11.880 QQ Helper (Renderer)[82534:23691189] config_current_version: 6.9.61-29927 2024-11-29 14:24:11.880 QQ Helper (Renderer)[82534:23691189] app_build_version: 22578 2024-11-29 14:24:11.880 QQ Helper (Renderer)[82534:23691189] notarized: 1 2024-11-29 14:24:11.880 QQ Helper (Renderer)[82534:23691189] retryTimes: 0 2024-11-29 14:24:11.881 QQ Helper (Renderer)[82534:23691189] system version: 14.3.1 LoadFromHotUpdateVersion, config_current_version: 6.9.61-29927 , need_startup_app:0 framework_path: /Users/mac/Library/Containers/com.tencent.qq/Data/Library/Application Support/QQ/versions/6.9.61-29927/QQUpdate.app/Contents/Frameworks/QQNT.framework/QQNT IsVersionsDirExist: /Users/mac/Library/Containers/com.tencent.qq/Data/Library/Application Support/QQ/versions/ IsVersionsDirExist: exists: 1 IsVersionsDirExist: isDir: 1 version_config_filename :/Users/mac/Library/Containers/com.tencent.qq/Data/Library/Application Support/QQ/versions/config.json app_package_filename :/Applications/QQ.app/Contents/Resources/app/package.json config_build_id :22578 config_base_version :6.9.31-22578 config_current_version :6.9.61-29927 app_build_version :22578 [preload] succeeded. /Users/mac/Library/Containers/com.tencent.qq/Data/Library/Application Support/QQ/versions/6.9.61-29927/QQUpdate.app/Contents/Resources/app/major.node 14:24:15.070 › [19376974df9][hot update] ------------ app 启动分界线 ------------ 14:24:15.080 › [19376974df9][hot update] hotUpdateApi checkHasMultipleQQ: false 14:24:15.080 › [19376974df9][hot update] hotUpdateApi clearOldVersions start 14:24:15.081 › [19376974df9][hot update] { "onErrorVersions" : [

], "buildId" : "22578", "prevVersion" : "6.9.36-24568", "retryTimes" : 0, "baseBundle" : "\/Applications\/QQ.app", "curVersion" : "6.9.61-29927", "baseVersion" : "6.9.31-22578", "notarized" : true } 14:24:15.214 › [19376974df9][hot update] ----- startUpdate ----- 14:24:15.219 › [19376974df9][hot update] hotUpdateApi checkHasMultipleQQ: false 14:24:15.220 › [19376974df9][hot update] hotUpdateApi start check 6.9.61-29927 IsOnErrorVersion 14:24:15.220 › [19376974df9][hot update] hotUpdateApi checkIsOnErrorVersion result: false 14:24:15.220 › [19376974df9][hot update] [startUpdate] 无需更新

qq启动起来了,但是napcat启动了吗?我在日志里没有看到webui的关键词

hguandl commented 3 days ago

@qinjin2 看起来 napcat 没有注入成功,请检查一下以下目录的内容是否存在:

qinjin2 commented 3 days ago

@hguandl 目录中存在napcat文件夹和loadNapCat.js文件 loadNapCat.js文件的内容如下: const hasNapcatParam = process.argv.includes('--no-sandbox'); const package = require('/Applications/QQ.app/Contents/Resources/app/package.json');

if (hasNapcatParam) { (async () => { await import('file:///Users/mac/Library/Containers/com.tencent.qq/Data/Documents/napcat/napcat.mjs'); })(); } else { require('/Applications/QQ.app/Contents/Resources/app/app_launcher/index.js'); setImmediate(() => { global.launcher.installPathPkgJson.main = ((version) => { if (version >= 29271) return "./application.asar/app_launcher/index.js"; if (version >= 28060) return "./application/app_launcher/index.js"; return "./app_launcher/index.js"; })(package.buildVersion); }); }

qinjin2 commented 3 days ago

同步一下信息,今早我怀疑是qq版本的问题进行了一波更新,现在qq的版本和napcat的版本是这样 image

hguandl commented 3 days ago

看看 /Applications/QQ.app/Contents/Resources/app/package.json 的内容

qinjin2 commented 3 days ago

@hguandl { "homepage" : "https://im.qq.com", "sideEffects" : true, "name" : "qq-chat", "productName" : "QQ", "isByteCodeShell" : true, "eleArch" : "x64", "main" : "../../../../../Users/mac/Library/Containers/com.tencent.qq/Data/Documents/loadNapCat.js", "author" : { "name" : "Tencent", "email" : "QQ-Team@tencent.com" }, "version" : "6.9.31-22578", "description" : "QQ", "platform" : "darwin", "buildVersion" : "22578", "bin" : { "qd" : "externals/devtools/cli/index.js" }, "private" : true }

hguandl commented 3 days ago

我看到 QQ 版本有些混乱,几个不同文件的版本号不一致,~可能是安装后又更新导致的~。仔细看了下,是 QQ 使用了内部下载的安装包(一般在 /Users/mac/Library/Containers/com.tencent.qq/Data/Library/Application Support/QQ/versions),而没使用 /Applications/QQ.app 。请考虑重新安装 QQ,然后再重新打开安装器替换 package.json 文件。我这边实测目前的最新版 6.9.61-29927 可用。

qinjin2 commented 3 days ago

@hguandl 好的,我卸载重装试试,感谢大佬

qinjin2 commented 3 days ago

@hguandl 可以了,成功启动了,感谢大佬,但是有一句日志打印是getNodeGetJsListApi: get symbol failed,这个有问题吗?我看webui启动成功可以访问了,这句日志有影响吗 完整的启动日志:

/Applications/QQ.app/Contents/MacOS/QQ --no-sandbox -q 1792896458 2024-11-29 15:53:33.265 QQ[85336:23763148] IsVersionsDirExist: /Users/mac/Library/Containers/com.tencent.qq/Data/Library/Application Support/QQ/versions/ 2024-11-29 15:53:33.265 QQ[85336:23763148] IsVersionsDirExist: exists: 1 2024-11-29 15:53:33.265 QQ[85336:23763148] IsVersionsDirExist: isDir: 1 2024-11-29 15:53:33.265 QQ[85336:23763148] version_config_filename : /Users/mac/Library/Containers/com.tencent.qq/Data/Library/Application Support/QQ/versions/config.json 2024-11-29 15:53:33.266 QQ[85336:23763148] app_package_filename : /Applications/QQ.app/Contents/Resources/app/package.json 2024-11-29 15:53:33.266 QQ[85336:23763148] config_build_id: 29927 2024-11-29 15:53:33.266 QQ[85336:23763148] config_base_version: 6.9.61-29927 2024-11-29 15:53:33.266 QQ[85336:23763148] config_current_version: 6.9.61-29927 2024-11-29 15:53:33.266 QQ[85336:23763148] app_build_version: 29927 2024-11-29 15:53:33.266 QQ[85336:23763148] notarized: 0 2024-11-29 15:53:33.266 QQ[85336:23763148] retryTimes: 0 LoadFromDefaultFramework 2024-11-29 15:53:33.266 QQ[85336:23763148] framework_path: /Applications/QQ.app/Contents/Frameworks/QQNT.framework/QQNT not mini app. IsVersionsDirExist: /Users/mac/Library/Containers/com.tencent.qq/Data/Library/Application Support/QQ/versions/ IsVersionsDirExist: exists: 1 IsVersionsDirExist: isDir: 1 version_config_filename :/Users/mac/Library/Containers/com.tencent.qq/Data/Library/Application Support/QQ/versions/config.json app_package_filename :/Applications/QQ.app/Contents/Resources/app/package.json config_build_id :29927 config_base_version :6.9.61-29927 config_current_version :6.9.61-29927 app_build_version :29927 [preload] succeeded. /Applications/QQ.app/Contents/Resources/app/major.node [preload] succeeded. /Applications/QQ.app/Contents/Resources/app/wrapper.node resourcesPath: /Applications/QQ.app/Contents/Resources 2024-11-29 15:53:33.475 QQ Helper (GPU)[85337:23763198] IsVersionsDirExist: /Users/mac/Library/Containers/com.tencent.qq/Data/Library/Application Support/QQ/versions/ 2024-11-29 15:53:33.475 QQ Helper (GPU)[85337:23763198] IsVersionsDirExist: exists: 1 2024-11-29 15:53:33.475 QQ Helper (GPU)[85337:23763198] IsVersionsDirExist: isDir: 1 2024-11-29 15:53:33.475 QQ Helper (GPU)[85337:23763198] version_config_filename : /Users/mac/Library/Containers/com.tencent.qq/Data/Library/Application Support/QQ/versions/config.json 2024-11-29 15:53:33.475 QQ Helper (GPU)[85337:23763198] app_package_filename : /Applications/QQ.app/Contents/Resources/app/package.json 2024-11-29 15:53:33.475 QQ Helper (GPU)[85337:23763198] config_build_id: 29927 2024-11-29 15:53:33.475 QQ Helper (GPU)[85337:23763198] config_base_version: 6.9.61-29927 2024-11-29 15:53:33.475 QQ Helper (GPU)[85337:23763198] config_current_version: 6.9.61-29927 2024-11-29 15:53:33.475 QQ Helper (GPU)[85337:23763198] app_build_version: 29927 2024-11-29 15:53:33.475 QQ Helper (GPU)[85337:23763198] notarized: 0 2024-11-29 15:53:33.475 QQ Helper (GPU)[85337:23763198] retryTimes: 0 LoadFromDefaultFramework 2024-11-29 15:53:33.475 QQ Helper (GPU)[85337:23763198] framework_path: /Applications/QQ.app/Contents/Frameworks/QQNT.framework/QQNT 2024-11-29 15:53:33.477 QQ Helper[85338:23763201] IsVersionsDirExist: /Users/mac/Library/Containers/com.tencent.qq/Data/Library/Application Support/QQ/versions/ 2024-11-29 15:53:33.477 QQ Helper[85338:23763201] IsVersionsDirExist: exists: 1 2024-11-29 15:53:33.477 QQ Helper[85338:23763201] IsVersionsDirExist: isDir: 1 2024-11-29 15:53:33.477 QQ Helper[85338:23763201] version_config_filename : /Users/mac/Library/Containers/com.tencent.qq/Data/Library/Application Support/QQ/versions/config.json 2024-11-29 15:53:33.477 QQ Helper[85338:23763201] app_package_filename : /Applications/QQ.app/Contents/Resources/app/package.json 2024-11-29 15:53:33.477 QQ Helper[85338:23763201] config_build_id: 29927 2024-11-29 15:53:33.477 QQ Helper[85338:23763201] config_base_version: 6.9.61-29927 2024-11-29 15:53:33.477 QQ Helper[85338:23763201] config_current_version: 6.9.61-29927 2024-11-29 15:53:33.477 QQ Helper[85338:23763201] app_build_version: 29927 2024-11-29 15:53:33.477 QQ Helper[85338:23763201] notarized: 0 2024-11-29 15:53:33.477 QQ Helper[85338:23763201] retryTimes: 0 LoadFromDefaultFramework 2024-11-29 15:53:33.477 QQ Helper[85338:23763201] framework_path: /Applications/QQ.app/Contents/Frameworks/QQNT.framework/QQNT NapCat Shell App Loading... [preload] register done. wrapper.node 11-29 15:53:33 [info] [NapCat] [Core] NapCat.Core Version: 4.2.7 11-29 15:53:33 [info] [NapCat] [WebUi] WebUi Local Panel Url: http://127.0.0.1:6099/webui?token=fr0jml1nc6 11-29 15:53:33 [info] [NapCat] [WebUi] WebUi Local Panel Url: https://napcat.152710.xyz/web_login?back=http://127.0.0.1:6099&token=fr0jml1nc6 11-29 15:53:33 [info] 核心登录服务连接成功! 11-29 15:53:33 [info] 正在快速登录 1792896458 11-29 15:53:35 [debug] 本账号数据/缓存目录: /Users/mac/Library/Containers/com.tencent.qq/Data/Library/Application Support/QQ/NapCat/data 11-29 15:53:35 [debug] [Core] [Config] 配置文件/Users/mac/Library/Containers/com.tencent.qq/Data/Library/Application Support/QQ/NapCat/config/napcat_1792896458.json加载 {"fileLog":false,"consoleLog":true,"fileLogLevel":"debug","consoleLogLevel":"info","packetBackend":"auto","packetServer":""} 11-29 15:53:35 [warn] [Core] [Packet] wsPacketClient 未配置服务器地址 11-29 15:53:35 [info] [Core] [Packet] 自动选择 NativePacketClient 作为后端 11-29 15:53:35 [info] [Notice] [OneBot11] [network] 配置加载 getNodeGetJsListApi: get symbol failed

hguandl commented 3 days ago

应该不影响使用

qinjin2 commented 3 days ago

@hguandl 好的,感谢大佬