From bba6e39a580f625f668927c4b5a71ff0699e1ef2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=81=8D=E5=85=AE=E6=83=9A=E5=85=AE?= <101191390+HIllya51@users.noreply.github.com> Date: Wed, 5 Jun 2024 04:00:10 +0800 Subject: [PATCH] . --- build.py | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/build.py b/build.py index 84dc2a53..68155aed 100644 --- a/build.py +++ b/build.py @@ -224,8 +224,21 @@ def buildLunaHook(): def buildPlugins(): os.chdir(rootDir + "\\plugins\\scripts") - subprocess.run(f"build32.bat") - subprocess.run(f"build64.bat") + subprocess.run("python fetchwebview2.py") + subprocess.run( + f'cmake ../CMakeLists.txt -G "Visual Studio 17 2022" -A win32 -T host=x86 -B ../build/x86 -DCMAKE_SYSTEM_VERSION=10.0.26621.0' + ) + subprocess.run( + f"cmake --build ../build/x86 --config Release --target ALL_BUILD -j 14" + ) + subprocess.run(f"python copytarget.py 1") + subprocess.run( + f'cmake ../CMakeLists.txt -G "Visual Studio 17 2022" -A x64 -T host=x64 -B ../build/x64 -DCMAKE_SYSTEM_VERSION=10.0.26621.0' + ) + subprocess.run( + f"cmake --build ../build/x64 --config Release --target ALL_BUILD -j 14" + ) + subprocess.run(f"python copytarget.py 0") def downloadsomething():