From f932d7cbfd3a3eade6f9f37dba8986b85306ddc8 Mon Sep 17 00:00:00 2001 From: Mzdyl <25149539+Mzdyl@users.noreply.github.com> Date: Mon, 29 Jan 2024 11:20:50 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BD=BF=E7=94=A8=20utf-8=20=E7=BC=96=E7=A0=81?= =?UTF-8?q?=EF=BC=8C=E9=80=82=E9=85=8D=E4=B8=AD=E6=96=87=E8=B7=AF=E5=BE=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- install_windows.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install_windows.py b/install_windows.py index 8572839..c01862e 100644 --- a/install_windows.py +++ b/install_windows.py @@ -184,7 +184,7 @@ def main(): # 修改index.js print("正在修补index.js...") index_path = os.path.join(app_launcher_path, "index.js") - with open(index_path, "r+") as f: + with open(index_path, "r+", encoding='utf-8') as f: content = f.read() f.seek(0, 0) f.write(f"require('{os.path.join(file_path, 'resources', 'app', 'LiteLoaderQQNT-main').replace(os.sep, '/')}');\n" + content)