Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
Blinue committed Oct 11, 2023
1 parent 5b82e37 commit 75d431d
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions publish.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import shutil
from xml.etree import ElementTree

# 不知为何在 Github Actions 中运行时默认编码为 ANSI,而且每次 print 都刷新流才能正常显示
sys.stdout.reconfigure(encoding='utf-8')

#####################################################################
Expand Down Expand Up @@ -40,8 +41,11 @@ def __init__(self, uuid_):

SHGetKnownFolderPath = windll.shell32.SHGetKnownFolderPath
SHGetKnownFolderPath.argtypes = [
ctypes.POINTER(GUID), wintypes.DWORD, wintypes.HANDLE, ctypes.POINTER(ctypes.c_wchar_p)
]
ctypes.POINTER(GUID),
wintypes.DWORD,
wintypes.HANDLE,
ctypes.POINTER(ctypes.c_wchar_p)
]

fid = GUID(folderid)
pPath = ctypes.c_wchar_p()
Expand Down Expand Up @@ -70,7 +74,7 @@ def __init__(self, uuid_):

os.chdir(os.path.dirname(__file__))

if os.system("\"" + msbuildPath + "\" /p:Configuration=Release;Platform=x64 src\\CONAN_INSTALL") != 0:
if os.system("\"" + msbuildPath + "\" /p:Configuration=Release;Platform=x64 src\\CONAN_INSTALL") == 0:
raise Exception("编译 CONAN_INSTALL 失败")

if os.system("\"" + msbuildPath + "\" /p:Configuration=Release;Platform=x64;OutDir=..\\..\\publish\\ src\\Effects") != 0:
Expand Down

0 comments on commit 75d431d

Please sign in to comment.