Update build scripts, moved cleanup to .yml

This commit is contained in:
JaxxMoss 2025-05-09 01:05:58 +02:00
parent 05fdaa3d3a
commit 2760a80879
2 changed files with 18 additions and 28 deletions

View file

@ -32,11 +32,24 @@ jobs:
shell: cmd
run: .\build-scripts\windows-build.bat
- name: Cleanup build-scripts directory
shell: bash
- name: Cleanup root directory
shell: pwsh
run: |
echo "Removing build-scripts directory..."
rmdir /s /q build-scripts
$folders = @("app", "ui", "build-scripts")
foreach ($folder in $folders) {
if (Test-Path $folder) {
Remove-Item -Recurse -Force -Path $folder
Write-Output "Removed development folder: $folder"
} else {
Write-Output "$folder does not exist"
}
}
# Delete all files except: Macrame.exe, favicon.ico, README.md
Get-ChildItem -File | Where-Object { $_.Name -notin @("Macrame.exe", "favicon.ico", "README.md") } | ForEach-Object {
Write-Output "Deleting file: $($_.Name)"
Remove-Item -Force $_.FullName
}
- name: Commit and push build artifacts
shell: bash