From cd25916d9dabceeb14853d4d6e55bafddd005c7c Mon Sep 17 00:00:00 2001 From: shanshi <3316401569@qq.com> Date: Wed, 21 Oct 2026 11:12:01 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=A1=A5=E9=BD=90=20Windows=20=E5=8F=91?= =?UTF-8?q?=E5=B8=83=20Composer=20=E9=95=9C=E5=83=8F=E6=BA=90=20(#413)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Windows 与 macOS 发布脚本统一支持 Composer 镜像源。 --- scripts/deploy-from-workstation.ps1 | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/scripts/deploy-from-workstation.ps1 b/scripts/deploy-from-workstation.ps1 index bc54c179..12f18e10 100644 --- a/scripts/deploy-from-workstation.ps1 +++ b/scripts/deploy-from-workstation.ps1 @@ -49,6 +49,12 @@ $sshTunnel = $null $buildkitConfig = Join-Path $repoRoot 'deploy/buildkitd.toml' $regctlVersion = 'v0.11.5' $regctlSha256 = '9b83975d464e4ee5a9f899a3ead26072ed67e9a8ed0f582897bfad8141b45938' +$composerRepoPackagist = if (Test-Path Env:CAIWU_COMPOSER_REPO_PACKAGIST) { + $env:CAIWU_COMPOSER_REPO_PACKAGIST +} +else { + 'https://mirrors.cloud.tencent.com/composer/' +} function Test-CaiwuReleaseIncludesCommit { param([string]$PreviousSha, [string]$ReleaseSha) @@ -408,6 +414,7 @@ try { --load ` --tag $fullImage ` --build-context 'frontend=.caiwu-build/public' ` + --build-arg "COMPOSER_REPO_PACKAGIST=$composerRepoPackagist" ` --build-arg "VCS_REF=$deploySha" ` --build-arg "BUILD_DATE=$buildDate" ` --build-arg 'APP_VERSION=3.1.15' ` @@ -559,6 +566,7 @@ try { --output "type=oci,dest=$localTar" ` --tag $fullImage ` --build-context 'frontend=.caiwu-build/public' ` + --build-arg "COMPOSER_REPO_PACKAGIST=$composerRepoPackagist" ` --build-arg "VCS_REF=$deploySha" ` --build-arg "BUILD_DATE=$buildDate" ` --build-arg 'APP_VERSION=3.1.15' `