fix build

This commit is contained in:
josc146 2023-08-27 23:56:30 +08:00
parent 50ff7ef6bc
commit 87b2c3ed7d
2 changed files with 3 additions and 1 deletions

View File

@ -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"

View File

@ -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()
}