change all cn to en to avoid annoying errors

This commit is contained in:
2026-05-20 20:43:42 -04:00
parent 39c0420835
commit 25301bd60e
5 changed files with 63 additions and 70 deletions

View File

@@ -1,26 +1,25 @@
@echo off
:: ==========================================
:: 自动化装机工具启动器
:: ==========================================
rem ==========================================
rem Winit Helper launcher
rem ==========================================
:: 1. 强制切换到当前批处理文件所在的目录
:: 这一步至关重要,防止以管理员身份运行时路径变成了 C:\Windows\System32
rem Always run from the project directory.
cd /d "%~dp0"
:: 2. 检查管理员权限
rem Relaunch as administrator when needed.
if not "%1" == "am_admin" (
rem you'd better keep the following line as it is.
powershell start -verb runas '%0' am_admin & exit /b
powershell.exe -NoProfile -Command "Start-Process -FilePath '%~f0' -ArgumentList 'am_admin' -Verb RunAs"
exit /b
)
:: ==========================================
:: 3. 核心执行逻辑
:: ==========================================
rem ==========================================
rem Run main script
rem ==========================================
echo Calling main.ps1...
:: -NoProfile: 不加载用户配置文件,加快启动速度
:: -ExecutionPolicy Bypass: 绕过默认的脚本执行策略限制
:: -File: 指定要运行的脚本文件
rem Remove Zone.Identifier from copied or downloaded project files.
powershell.exe -NoProfile -ExecutionPolicy Bypass -Command "Get-ChildItem -LiteralPath '%~dp0' -Recurse -File -Include *.ps1,*.psm1,*.bat,*.cmd,*.json,*.yaml,*.yml,*.reg | Unblock-File -ErrorAction SilentlyContinue"
powershell.exe -NoExit -NoProfile -ExecutionPolicy Bypass -File ".\bin\main.ps1"