fix(build): crashes when files changed :(
All checks were successful
Build and Push LST Docker Image / docker (push) Successful in 2m34s

BREAKING CHANGE: gives a rabbit hole error

closes #24
This commit is contained in:
2026-05-21 21:51:21 -05:00
parent 1840ac5e58
commit 1f6637c512

View File

@@ -180,6 +180,23 @@ function Update-Server {
Stop-Service -DisplayName $app_name -Force
Start-Sleep -Seconds 1
Write-Host "Removing old server"
# Remove old dist folder before extracting
$DistPath = Join-Path $LocalPath "dist"
if (Test-Path $DistPath) {
Write-Host "Removing old dist folder..."
try {
Remove-Item $DistPath -Recurse -Force
}
catch {
Write-Host "Failed to remove dist folder: $_"
exit 1
}
}
Write-Host "Unzipping the folder..."
try {