fix: make dev script choose free port

This commit is contained in:
QiuSW
2026-07-08 16:33:18 +08:00
parent 7c31554f64
commit 462ff5ac4c
7 changed files with 17 additions and 7 deletions
+1 -1
View File
@@ -1 +1 @@
@for /f "delims=" %%G in ('go env GOPATH') do @set "PATH=%%G\bin;%PATH%" && wails3 dev
@cd /d "%~dp0" && for /f "delims=" %%G in ('go env GOPATH') do @set "PATH=%%G\bin;%PATH%" && for /f %%P in ('powershell -NoProfile -Command "$p=9245; while (Get-NetTCPConnection -LocalPort $p -State Listen -ErrorAction SilentlyContinue) { $p++ }; $p"') do @wails3 dev -config .\build\config.yml -port %%P