From 5688a264960b545f66129b70a9774a59069d7ab1 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 47e113a7b29fccac69965d6725bded645d7b5b94 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