From b1c2eabac407fa097fc6682da61a490e4b923220 Mon Sep 17 00:00:00 2001 From: chenxi Date: Mon, 28 Sep 2026 10:49:32 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=20macOS=20=E5=A2=9E=E9=87=8F?= =?UTF-8?q?=E5=8F=91=E5=B8=83=E5=B7=A5=E5=85=B7=E6=89=A7=E8=A1=8C=E6=9D=83?= =?UTF-8?q?=E9=99=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/deploy-from-workstation.ps1 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/deploy-from-workstation.ps1 b/scripts/deploy-from-workstation.ps1 index a21b060e..00e343e1 100644 --- a/scripts/deploy-from-workstation.ps1 +++ b/scripts/deploy-from-workstation.ps1 @@ -232,6 +232,7 @@ function Get-RegctlPath { if (Test-Path -LiteralPath $regctlPath) { $actualHash = (Get-FileHash -LiteralPath $regctlPath -Algorithm SHA256).Hash.ToLowerInvariant() if ($actualHash -eq $expectedHash) { + if (-not $IsWindows) { chmod +x $regctlPath } return $regctlPath } Remove-Item -LiteralPath $regctlPath -Force @@ -248,6 +249,7 @@ function Get-RegctlPath { throw "regctl 校验失败:预期 $expectedHash,实际 $actualHash。" } Move-Item -LiteralPath $downloadPath -Destination $regctlPath -Force + if (-not $IsWindows) { chmod +x $regctlPath } } finally { if (Test-Path -LiteralPath $downloadPath) {