Compare commits

..
1 Commits
Author SHA1 Message Date
手瓜一十雪 a01e4ca89f release: 2.3.1
Build Release / check-version (push) Canceled after 0s
Build Release / Build-LiteLoader (push) Canceled after 0s
Build Release / Build-Shell (push) Canceled after 0s
Build Release / release-napcat (push) Canceled after 0s
2024-09-05 14:03:03 +08:00
2 changed files with 2 additions and 3 deletions

No files matched your search

+1 -2
View File
@@ -21,13 +21,12 @@ for /f "tokens=2*" %%a in ('reg query "HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\M
)
:napcat_boot
for %%a in (%RetString%) do (
for %%a in ("%RetString%") do (
set "pathWithoutUninstall=%%~dpa"
)
SET QQPath=%pathWithoutUninstall%QQ.exe
REM 拿不到QQ路径则退出
if not exist "%QQpath%" (
echo provided QQ path is invalid: %QQpath%
pause
+1 -1
View File
@@ -21,7 +21,6 @@ for /f "tokens=2*" %%a in ('reg query "HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\M
)
:napcat_boot
:: %RetString% 增加引号,解决QQ目录包含空格的问题,比如安装在:C:\Program Files\Tencent\QQNT
for %%a in ("%RetString%") do (
set "pathWithoutUninstall=%%~dpa"
)
@@ -33,6 +32,7 @@ if not exist "%QQpath%" (
pause
exit /b
)
set NAPCAT_MAIN_PATH=%NAPCAT_MAIN_PATH:\=/%
echo (async () =^> {await import("file:///%NAPCAT_MAIN_PATH%")})() > %NAPCAT_LOAD_PATH%