chore: use pwsh 7.6 instead of powershell

This commit is contained in:
tian 2026-05-08 20:24:09 +08:00
parent c6c38f1e5d
commit 7386969c27
2 changed files with 2 additions and 1 deletions

View File

@ -91,3 +91,4 @@ The config preview rendering pipeline: merge template + profile + overlays → r
- **No tabs**: use spaces for indentation in all source files.
- **No `fetch()` in templates** for page data — all API calls must go through Go server-side handlers. JS is only for UI interactivity (modals, carousels, confirm dialogs).
- **No inline `onclick` with complex quoting** — use `data-*` attributes + event delegation instead.
- **Use `pwsh`** for PowerShell commands (v7.6.1 in PATH, not `powershell.exe`).

View File

@ -1,5 +1,5 @@
@echo off
setlocal
chcp 65001 >nul
powershell -NoProfile -ExecutionPolicy Bypass -File "%~dp0managerd.ps1" %*
pwsh -NoProfile -ExecutionPolicy Bypass -File "%~dp0managerd.ps1" %*
exit /b %ERRORLEVEL%