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
Build Release / build-docker (push) Canceled after 0s
Build Action / Build-LiteLoader (push) Canceled after 0s
Build Action / Build-Shell (push) Canceled after 0s
Introduces napiloader batch scripts and binaries (napiloader.dll, napimain.exe) for Windows integration. Updates vite.config.ts to include napiloader files in the Framework build output and refactors plugin target lists for improved distribution packaging.
27 lines
716 B
Batchfile
27 lines
716 B
Batchfile
@echo off
|
|
chcp 65001
|
|
set NAPCAT_INJECT_PATH=%cd%\napiloader.dll
|
|
set NAPCAT_LAUNCHER_PATH=%cd%\napimain.exe
|
|
set NAPCAT_MAIN_PATH=%cd%\nativeLoader.cjs
|
|
:loop_read
|
|
for /f "tokens=2*" %%a in ('reg query "HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\QQ" /v "UninstallString"') do (
|
|
set "RetString=%%~b"
|
|
goto :napcat_boot
|
|
)
|
|
|
|
:napcat_boot
|
|
for %%a in ("%RetString%") do (
|
|
set "pathWithoutUninstall=%%~dpa"
|
|
)
|
|
|
|
set "QQPath=%pathWithoutUninstall%QQ.exe"
|
|
|
|
if not exist "%QQpath%" (
|
|
echo provided QQ path is invalid
|
|
pause
|
|
exit /b
|
|
)
|
|
|
|
set NAPCAT_MAIN_PATH=%NAPCAT_MAIN_PATH:\=/%
|
|
|
|
start "" "%NAPCAT_LAUNCHER_PATH%" "%QQPath%" "%NAPCAT_INJECT_PATH%" "%NAPCAT_MAIN_PATH%" |