16 lines
483 B
PowerShell
16 lines
483 B
PowerShell
# Simple deploy script runner
|
|
# This script reads and executes the deploy script to avoid encoding issues
|
|
|
|
$scriptPath = Join-Path $PSScriptRoot "安全部署.ps1"
|
|
|
|
if (-not (Test-Path $scriptPath)) {
|
|
Write-Host "Error: Deploy script not found" -ForegroundColor Red
|
|
Write-Host "Expected path: $scriptPath" -ForegroundColor Yellow
|
|
exit 1
|
|
}
|
|
|
|
# Read and execute the script
|
|
$scriptContent = Get-Content -Path $scriptPath -Raw -Encoding UTF8
|
|
Invoke-Expression $scriptContent
|
|
|