build: ver_0.338 - bugfix duplikaty zamowien + status COD
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user