From 819b140a90c2805b38b05ea376b167912fa8c7b1 Mon Sep 17 00:00:00 2001 From: Roman Terekhov Date: Sun, 11 Oct 2026 14:41:58 +0300 Subject: [PATCH] =?UTF-8?q?CI:=20=D0=BF=D1=83=D0=B1=D0=BB=D0=B8=D0=BA?= =?UTF-8?q?=D0=B0=D1=86=D0=B8=D1=8F=20=D1=80=D0=B5=D0=BB=D0=B8=D0=B7=D0=B0?= =?UTF-8?q?=20=D0=B1=D0=B5=D0=B7=20=D0=BF=D0=B5=D1=80=D0=B5=D1=81=D0=B1?= =?UTF-8?q?=D0=BE=D1=80=D0=BA=D0=B8=20(-SkipBuild)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ci/build-local.ps1 | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/ci/build-local.ps1 b/ci/build-local.ps1 index 1adf6e9b..25c500cd 100644 --- a/ci/build-local.ps1 +++ b/ci/build-local.ps1 @@ -46,6 +46,7 @@ param( [switch]$Publish, [string]$Tag = '', [switch]$Public, + [switch]$SkipBuild, [string]$Token = $env:GITEA_TOKEN, [string]$GiteaUrl = 'https://git.meshinfo.ru', [string]$Repo = 'shade/MeshCore' @@ -98,12 +99,19 @@ try { # out/ чистим, иначе в релиз попадут файлы прошлых сборок $outDir = Join-Path $root 'out' - if (Test-Path $outDir) { Get-ChildItem $outDir -File | Remove-Item -Force } + $buildExit = 0 + if ($SkipBuild) { + Write-Host '' + Write-Host 'сборка пропущена (-SkipBuild): публикую то, что уже лежит в out/' -ForegroundColor Yellow + } + else { + if (Test-Path $outDir) { Get-ChildItem $outDir -File | Remove-Item -Force } - Write-Host '' - Write-Host "=== сборка (версия $Version) ===" -ForegroundColor Cyan - & $bash 'ci/build-firmwares.sh' - $buildExit = $LASTEXITCODE + Write-Host '' + Write-Host "=== сборка (версия $Version) ===" -ForegroundColor Cyan + & $bash 'ci/build-firmwares.sh' + $buildExit = $LASTEXITCODE + } $files = @(Get-ChildItem $outDir -File -ErrorAction SilentlyContinue) Write-Host ''