From 311bc97d7a76038cb6b1baa5390130e68b2af7a2 Mon Sep 17 00:00:00 2001 From: KakaruHayate <97896816+KakaruHayate@users.noreply.github.com> Date: Wed, 24 Jan 2024 11:10:40 +0800 Subject: [PATCH 1/2] Create go-webui.ps1 --- go-webui.ps1 | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 go-webui.ps1 diff --git a/go-webui.ps1 b/go-webui.ps1 new file mode 100644 index 0000000..5d225a4 --- /dev/null +++ b/go-webui.ps1 @@ -0,0 +1,2 @@ +runtime\python.exe webui.py +pause From 281c2b0e61dc1595098dd30a7f0d27159af36e93 Mon Sep 17 00:00:00 2001 From: KakaruHayate <97896816+KakaruHayate@users.noreply.github.com> Date: Sat, 27 Jan 2024 10:49:48 +0800 Subject: [PATCH 2/2] support powershell --- go-webui.ps1 | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/go-webui.ps1 b/go-webui.ps1 index 5d225a4..219798a 100644 --- a/go-webui.ps1 +++ b/go-webui.ps1 @@ -1,2 +1,4 @@ -runtime\python.exe webui.py +$ErrorActionPreference = "SilentlyContinue" +chcp 65001 +& "$PSScriptRoot\runtime\python.exe" "$PSScriptRoot\webui.py" pause