Skip to content

Commit

Permalink
chore: 修复中文字符显示
Browse files Browse the repository at this point in the history
不知为何 python 的 stdout 的编码默认为 ANSI,而不是 UTF-8
  • Loading branch information
Blinue committed Oct 11, 2023
1 parent 5ac2025 commit 0b62591
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions publish.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,8 @@ def __init__(self, uuid_):
if os.system("\"" + msbuildPath + "\" /p:Configuration=Release;Platform=x64;OutDir=..\\..\\publish\\ src\\Updater") != 0:
raise Exception("编译 Updater 失败")

print("编译完成", flush=True)

#####################################################################
#
# 清理不需要的文件
Expand Down Expand Up @@ -120,7 +122,7 @@ def remove_folder(folder):
for folder in ["Microsoft.UI.Xaml", "Magpie.App"]:
remove_folder(folder)

print("清理完毕")
print("清理完毕", flush=True)

#####################################################################
#
Expand Down Expand Up @@ -184,4 +186,4 @@ def remove_folder(folder):
os.remove("resources.pri.xml")
os.remove("priconfig.xml")

print("已修剪 resources.pri")
print("已修剪 resources.pri", flush=True)

0 comments on commit 0b62591

Please sign in to comment.