From b415c1a6d1be1a9c8456ef5ab0e747fb1b16fd02 Mon Sep 17 00:00:00 2001 From: "Wesley F. Young" Date: Wed, 4 Sep 2024 23:26:55 +0800 Subject: [PATCH] fix: file encoding --- .editorconfig | 3 +++ launcher/launcher.bat | 4 +--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.editorconfig b/.editorconfig index 8e507935..e73bbcf5 100644 --- a/.editorconfig +++ b/.editorconfig @@ -17,5 +17,8 @@ charset = utf-8 indent_style = space indent_size = 4 +[*.bat] +charset = latin1 + # Unfortunately, EditorConfig doesn't support space configuration inside import braces directly. # You'll need to rely on your linter/formatter like ESLint or Prettier for that. diff --git a/launcher/launcher.bat b/launcher/launcher.bat index 19a3f935..965624b1 100644 --- a/launcher/launcher.bat +++ b/launcher/launcher.bat @@ -5,7 +5,6 @@ if %errorLevel% == 0 ( echo Administrator mode detected. ) else ( echo Please run this script in administrator mode. - REM 以管理员权限启动脚本 并保留工作目录 powershell -Command "Start-Process 'wt.exe' -ArgumentList 'cmd /c cd /d \"%cd%\" && \"%~f0\"' -Verb runAs" exit ) @@ -28,7 +27,6 @@ for %%a in (%RetString%) do ( SET QQPath=%pathWithoutUninstall%QQ.exe -REM 拿不到QQ路径则退出 if not exist "%QQpath%" ( echo provided QQ path is invalid: %QQpath% pause @@ -37,4 +35,4 @@ if not exist "%QQpath%" ( set NAPCAT_MAIN_PATH=%NAPCAT_MAIN_PATH:\=/% echo (async () =^> {await import("file:///%NAPCAT_MAIN_PATH%")})() > %NAPCAT_LOAD_PATH% -"%NAPCAT_LAUNCHER_PATH%" "%QQPath%" "%NAPCAT_INJECT_PATH%" \ No newline at end of file +"%NAPCAT_LAUNCHER_PATH%" "%QQPath%" "%NAPCAT_INJECT_PATH%"