Skip to content

Commit

Permalink
使用 utf-8 编码,适配中文路径
Browse files Browse the repository at this point in the history
  • Loading branch information
Mzdyl committed Jan 29, 2024
1 parent 51699fa commit f932d7c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion install_windows.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit f932d7c

Please sign in to comment.