build: ver_0.338 - bugfix duplikaty zamowien + status COD

This commit is contained in:
Jacek
2026-03-12 11:04:43 +01:00
parent a1b60c1f25
commit 5a58ab17e7
6 changed files with 151 additions and 118 deletions

View File

@@ -259,7 +259,7 @@ if (-not $ChangelogEntry) {
# --- 8. Tworzenie temp i kopiowanie plikow ---
$tempDir = "temp/temp_$versionInt"
$tempDir = "$env:TEMP\shopPRO_build_$versionInt"
if (Test-Path $tempDir) {
Remove-Item -Recurse -Force $tempDir
@@ -301,15 +301,16 @@ if (Test-Path $zipPath) {
# Pakuj zawartosc temp dir (bez folderu temp/)
$originalLocation = Get-Location
$absoluteZipPath = Join-Path $originalLocation $zipPath
Set-Location $tempDir
$tempItems = Get-ChildItem -Force
if ($tempItems) {
Compress-Archive -Path '*' -DestinationPath "../../$zipPath" -Force
Compress-Archive -Path '*' -DestinationPath $absoluteZipPath -Force
} else {
# SQL-only update: create minimal ZIP with empty placeholder
$placeholderPath = "_sql_only_update.txt"
Set-Content -Path $placeholderPath -Value "SQL-only update $versionNumber"
Compress-Archive -Path $placeholderPath -DestinationPath "../../$zipPath" -Force
Compress-Archive -Path $placeholderPath -DestinationPath $absoluteZipPath -Force
Remove-Item $placeholderPath -Force
}
Set-Location $originalLocation