build(build): script created to build lstv2 and copy over before zipping up also cleanup

This commit is contained in:
2025-07-16 09:51:08 -05:00
parent 26b018ee3e
commit c0d67c2a16
2 changed files with 79 additions and 0 deletions

View File

@@ -3,6 +3,12 @@ $rootDir = Join-Path $scriptDir ".."
$releaseScript = Join-Path $scriptDir "release.ps1"
$packageJsonPath = Join-Path $rootDir "package.json"
# tmp scripts to get lstv2 into this build and zipped up with everything
. (Join-Path $PSScriptRoot "lstV2Build.ps1")
# will run the lstv2 build first so we know for sure its copied over
Build-LstV2-And-Copy
# Path to BUILD_NUMBER file, assuming root is one level up from scripts
$buildNumberFile = Join-Path $scriptDir "..\BUILD_NUMBER"
$envFile = Join-Path $rootDir ".env"
@@ -139,6 +145,9 @@ try {
# 5. Create Gitea release via our script
npm run release
# deleteing the temp folder so we always cleaned up
Delete-Tmp-Folder
if ($LASTEXITCODE -ne 0) {
throw "Failed to create Gitea release"
}
@@ -146,6 +155,9 @@ try {
}
} catch {
Write-Warning "Release process failed: $_"
# deleteing the temp folder so we always cleaned up
Delete-Tmp-Folder
exit 1
}