flnxi-Wu/scripts/deploy/deploy.ps1
WuYongJie f646b71813
Some checks failed
CI Check / check (push) Has been cancelled
chore: 初始化本地仓库并同步最近改动
2025-11-18 17:50:16 +08:00

22 lines
710 B
PowerShell

# Deploy Script Wrapper
# This script wraps the Chinese-named deploy script to avoid encoding issues
$ErrorActionPreference = "Stop"
# Get the script directory
$scriptDir = Split-Path -Parent $MyInvocation.MyCommand.Path
# Find the Chinese-named deploy script using Get-ChildItem
$deployScript = Get-ChildItem -Path $scriptDir -Filter "*.ps1" | Where-Object { $_.Name -like "*部署*" } | Select-Object -First 1
if (-not $deployScript) {
Write-Host "Error: Deploy script not found in $scriptDir" -ForegroundColor Red
exit 1
}
Write-Host "Found deploy script: $($deployScript.FullName)" -ForegroundColor Green
# Execute the deploy script with all passed parameters
& $deployScript.FullName $args