Bump release version and snapshot startup state
This commit is contained in:
@@ -353,13 +353,12 @@ function New-ReleaseDirectory {
|
||||
|
||||
$releaseDir = Join-Path $root "proxywarden-v$TargetVersion"
|
||||
|
||||
if ((Test-Path -LiteralPath $releaseDir) -and $Force) {
|
||||
if (Test-Path -LiteralPath $releaseDir) {
|
||||
if (-not (Test-IsSubPath -Parent $root -Child $releaseDir)) {
|
||||
throw "Refusing to remove release directory outside OutputRoot: $releaseDir"
|
||||
}
|
||||
Write-Host "Replacing existing release directory: $releaseDir"
|
||||
Remove-Item -LiteralPath $releaseDir -Recurse -Force
|
||||
} elseif (Test-Path -LiteralPath $releaseDir) {
|
||||
throw "Release directory already exists: $releaseDir. Use -Force to replace it."
|
||||
}
|
||||
|
||||
New-Item -ItemType Directory -Path (Join-Path $releaseDir "artifacts") -Force | Out-Null
|
||||
@@ -409,10 +408,6 @@ function Invoke-ReleaseBuild {
|
||||
function Copy-ReleaseArtifacts {
|
||||
param([string]$ReleaseDir)
|
||||
|
||||
if ($SkipBuild) {
|
||||
return @()
|
||||
}
|
||||
|
||||
if (-not (Test-Path -LiteralPath $BundleRoot)) {
|
||||
throw "Tauri bundle output was not found: $BundleRoot"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user