$ErrorActionPreference = 'Stop'
$publishDir = Join-Path $PSScriptRoot 'publish\win-x64'
& dotnet publish .\PortfolioSuiteLauncher.vbproj -c Release -r win-x64 --self-contained true /p:PublishSingleFile=true /p:IncludeNativeLibrariesForSelfExtract=true -o $publishDir
Write-Host "Selesai. EXE standalone ada di: $publishDir" -ForegroundColor Green
