Release ForgeFlow 0.8.1
Add advanced Git and deployment workflows, secure backups and auditing, live Gitea integration, desktop notifications, connection validation, and the premium responsive UX refresh.
This commit is contained in:
+14
-29
@@ -4,47 +4,32 @@ Set-Location $PSScriptRoot
|
||||
|
||||
function Assert-Command {
|
||||
param([Parameter(Mandatory = $true)][string]$Name)
|
||||
if (-not (Get-Command $Name -ErrorAction SilentlyContinue)) {
|
||||
throw "Required command '$Name' was not found on PATH."
|
||||
}
|
||||
if (-not (Get-Command $Name -ErrorAction SilentlyContinue)) { throw "Required command '$Name' was not found on PATH." }
|
||||
}
|
||||
|
||||
function Invoke-Step {
|
||||
param(
|
||||
[Parameter(Mandatory = $true)][string]$Title,
|
||||
[Parameter(Mandatory = $true)][scriptblock]$Action
|
||||
)
|
||||
param([Parameter(Mandatory = $true)][string]$Title, [Parameter(Mandatory = $true)][scriptblock]$Action)
|
||||
Write-Host "`n$Title" -ForegroundColor Yellow
|
||||
& $Action
|
||||
if ($LASTEXITCODE -ne 0) {
|
||||
throw "$Title failed with exit code $LASTEXITCODE."
|
||||
}
|
||||
if ($LASTEXITCODE -ne 0) { throw "$Title failed with exit code $LASTEXITCODE." }
|
||||
}
|
||||
|
||||
Write-Host "ForgeFlow v0.4.2 source update" -ForegroundColor Cyan
|
||||
Write-Host "Your Gitea token, repository mappings and deployment profiles are stored outside this source folder and are not reset." -ForegroundColor DarkGray
|
||||
$package = Get-Content ".\package.json" -Raw | ConvertFrom-Json
|
||||
$version = [string]$package.version
|
||||
if ($package.name -ne "forgeflow" -or [string]::IsNullOrWhiteSpace($version)) { throw "This folder is not a valid ForgeFlow source release." }
|
||||
|
||||
Write-Host "ForgeFlow v$version source update" -ForegroundColor Cyan
|
||||
Write-Host "Your Gitea token, repository mappings and deployment profiles are stored outside this source folder and are not reset." -ForegroundColor DarkGray
|
||||
Assert-Command node
|
||||
Assert-Command npm
|
||||
Assert-Command git
|
||||
|
||||
$package = Get-Content ".\package.json" -Raw | ConvertFrom-Json
|
||||
if ($package.version -ne "0.4.2") {
|
||||
throw "This folder does not contain ForgeFlow v0.4.2. Detected version: $($package.version)"
|
||||
Invoke-Step "Installing exact project dependencies..." {
|
||||
if (-not (Test-Path ".\package-lock.json")) { throw "package-lock.json is required for a reproducible ForgeFlow update." }
|
||||
npm ci --no-audit --no-fund
|
||||
}
|
||||
Invoke-Step "Running the environment doctor..." { npm run doctor }
|
||||
Invoke-Step "Running source verification and automated tests..." { npm run check }
|
||||
|
||||
Invoke-Step "Updating project dependencies..." {
|
||||
npm install --no-audit --no-fund
|
||||
}
|
||||
|
||||
Invoke-Step "Running the environment doctor..." {
|
||||
npm run doctor
|
||||
}
|
||||
|
||||
Invoke-Step "Running source verification and all automated tests..." {
|
||||
npm run check
|
||||
}
|
||||
|
||||
Write-Host "`nForgeFlow v0.4.2 is ready." -ForegroundColor Green
|
||||
Write-Host "`nForgeFlow v$version is ready." -ForegroundColor Green
|
||||
Write-Host "Starting ForgeFlow with your existing local configuration..." -ForegroundColor Green
|
||||
npm start
|
||||
|
||||
Reference in New Issue
Block a user