开发机迁移
This commit is contained in:
12
start-admin.bat
Normal file
12
start-admin.bat
Normal file
@@ -0,0 +1,12 @@
|
||||
@echo off
|
||||
chcp 65001 >nul 2>&1
|
||||
:: CHANGE 2026-03-07 | 注入 NEOZQYY_LAUNCH_DIR:%~dp0 不穿透 junction,
|
||||
:: ps1 脚本用它定位项目根目录,避免 PowerShell 路径解析到 D 盘
|
||||
set "NEOZQYY_LAUNCH_DIR=%~dp0"
|
||||
:: 拉起 ps1 脚本(优先 pwsh 7,回退 powershell 5.1)
|
||||
where pwsh >nul 2>&1
|
||||
if %errorlevel%==0 (
|
||||
start "NeoZQYY Launcher" pwsh -ExecutionPolicy Bypass -File "%~dp0scripts\ops\start-admin.ps1"
|
||||
) else (
|
||||
start "NeoZQYY Launcher" powershell -ExecutionPolicy Bypass -File "%~dp0scripts\ops\start-admin.ps1"
|
||||
)
|
||||
Reference in New Issue
Block a user