diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index eed02d3..17c51eb 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -73,6 +73,7 @@ jobs: mv ./target/release/ai00_server.exe ../backend-rust/webgpu_server.exe cd .. go install github.com/wailsapp/wails/v2/cmd/wails@latest + (Get-Content -Path ./backend-golang/app.go) -replace "//go:custom_build windows ", "" | Set-Content -Path ./backend-golang/app.go make Rename-Item -Path "build/bin/RWKV-Runner.exe" -NewName "RWKV-Runner_windows_x64.exe" diff --git a/backend-golang/app.go b/backend-golang/app.go index f3e8521..c67d3d2 100644 --- a/backend-golang/app.go +++ b/backend-golang/app.go @@ -113,7 +113,8 @@ func (a *App) monitorHardware() { } }() - monitor.SysProcAttr = &syscall.SysProcAttr{HideWindow: true} + monitor.SysProcAttr = &syscall.SysProcAttr{} + //go:custom_build windows monitor.SysProcAttr.HideWindow = true monitor.Start() }