diff --git a/scripts/build.ps1 b/scripts/build.ps1 index b513bf6..26cffdf 100644 --- a/scripts/build.ps1 +++ b/scripts/build.ps1 @@ -122,6 +122,13 @@ function Update-BuildNumber { Write-Host "Building wrapper" Push-Location $rootDir/LstWrapper + #remove the publish folder as we done need it + if (-not (Test-Path "/publish")) { + Write-Host "The publish folder is already deleted nothing else to do" + } else { + Remove-Item -LiteralPath "/publish" -Force -Recurse + } + dotnet publish -c Release -o ./publish Pop-Location @@ -156,7 +163,7 @@ try { 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" } @@ -166,10 +173,10 @@ try { Write-Warning "Release process failed: $_" # deleteing the temp folder so we always cleaned up - Delete-Tmp-Folder exit 1 } - + + Delete-Tmp-Folder break diff --git a/scripts/createZip.ps1 b/scripts/createZip.ps1 index 2e26457..d81b7e3 100644 --- a/scripts/createZip.ps1 +++ b/scripts/createZip.ps1 @@ -72,16 +72,18 @@ $tempStageDir = New-Item -ItemType Directory -Path (Join-Path $env:TEMP "lst_sta # Copy files to organized structure $filesToCopy = @( @{ Source = "backend\lst_backend.exe"; Destination = "backend\lst_backend.exe" }, + @{ Source = "backend\docs"; Destination = "backend\docs\" }, + @{ Source = "backend\frontend"; Destination = "backend\frontend\" }, @{ Source = "LstWrapper\publish"; Destination = "lstwrapper\" }, - @{ Source = "frontend\.nitro"; Destination = "frontend\.nitro" }, - @{ Source = "frontend\.tanstack"; Destination = "frontend\.tanstack" }, - @{ Source = "frontend\.output"; Destination = "frontend\.output" }, - @{ Source = "frontend\public"; Destination = "frontend\public" }, + #@{ Source = "frontend\.nitro"; Destination = "frontend\.nitro" }, + #@{ Source = "frontend\.tanstack"; Destination = "frontend\.tanstack" }, + #@{ Source = "frontend\.output"; Destination = "frontend\.output" }, + #@{ Source = "frontend\public"; Destination = "frontend\public" }, @{ Source = "package.json"; Destination = "package.json" }, @{ Source = "CHANGELOG.md"; Destination = "CHANGELOG.md" }, @{ Source = "README.md"; Destination = "README.md" }, # scripts to be copied over - @{ Source = "scripts\tmp"; Destination = "scripts\tmp" } + @{ Source = "scripts\tmp"; Destination = "tmp" } @{ Source = "scripts\iisControls.ps1"; Destination = "scripts\iisControls.ps1" } # docs # @{ Source = "lst-docs\build"; Destination = "lst-docs\build" } diff --git a/scripts/serviceController.ps1 b/scripts/serviceController.ps1 new file mode 100644 index 0000000..e69de29