From e2fe68a29a7d94b0c2cf4e1b9aec2620da4f601e Mon Sep 17 00:00:00 2001 From: Tomi Eckert Date: Wed, 10 Dec 2025 11:03:10 +0000 Subject: [PATCH] Delete build.installer.ps1 --- build.installer.ps1 | 31 ------------------------------- 1 file changed, 31 deletions(-) delete mode 100644 build.installer.ps1 diff --git a/build.installer.ps1 b/build.installer.ps1 deleted file mode 100644 index 2bc2083..0000000 --- a/build.installer.ps1 +++ /dev/null @@ -1,31 +0,0 @@ -# Configuration -$wpfProject = ".\BlueMine\BlueMine.csproj" -$installerProject = ".\BlueberryUpdater\BlueberryUpdater.csproj" -$installerDir = ".\BlueberryUpdater" -$zipPath = "$installerDir\AppPayload.zip" -$outputDir = ".\FinalBuild" - -# 1. Clean up previous artifacts -Write-Host "Cleaning up..." -ForegroundColor Cyan -if (Test-Path $zipPath) { Remove-Item $zipPath } -if (Test-Path $outputDir) { Remove-Item $outputDir -Recurse } -if (Test-Path ".\TempWpfPublish") { Remove-Item ".\TempWpfPublish" -Recurse } - -# 2. Publish WPF App (Self-Contained) -Write-Host "Publishing WPF App..." -ForegroundColor Cyan -dotnet publish $wpfProject -c Release -r win-x64 --self-contained true -o ".\TempWpfPublish" /p:DebugType=None /p:DebugSymbols=false - -# 3. Zip the Published WPF App -Write-Host "Creating Payload Zip..." -ForegroundColor Cyan -Compress-Archive -Path ".\TempWpfPublish\*" -DestinationPath $zipPath - -# 4. Publish Installer (Single File + Embeds the Zip) -Write-Host "Building Final Installer..." -ForegroundColor Cyan -dotnet publish $installerProject -c Release -r win-x64 --self-contained true -o $outputDir -p:PublishSingleFile=true -p:IncludeNativeLibrariesForSelfExtract=true - -# 5. Cleanup Temp Files -Remove-Item ".\TempWpfPublish" -Recurse -# Optional: Remove the zip from the source folder if you want to keep it clean -# Remove-Item $zipPath - -Write-Host "Build Complete! Installer is in $outputDir" -ForegroundColor Green \ No newline at end of file