Update powershell build script

This commit is contained in:
Natsumi
2025-06-30 12:25:21 +12:00
parent 4a630079d7
commit 952fd77ed5

View File

@@ -29,7 +29,9 @@ Move-Item $ZipName ..\..\$ZipName -Force
cd ..\..\
Write-Host "Creating Installer..." -ForegroundColor Green
$version = Get-Content -Path "Version" -Raw
cd "Installer"
Out-File -FilePath "version_define.nsh" -Encoding UTF8 -InputObject "!define PRODUCT_VERSION_FROM_FILE `"$version.0`""
$nsisPath = "C:\Program Files (x86)\NSIS\makensis.exe"
&$nsisPath installer.nsi
Start-Sleep -Seconds 1