Windows: Include portable.txt in portable ZIP packages (#1341)

This commit is contained in:
Lorie
2026-11-13 01:48:24 +01:00
committed by GitHub
parent 2aa342859a
commit faa38be657
+2
View File
@@ -112,6 +112,8 @@ $Portable = Join-Path $TargetDir "windows-package\soundcraft-$Version-windows-$A
Remove-Item -Recurse -Force $Portable -ErrorAction SilentlyContinue
New-Item -ItemType Directory -Force -Path $Portable | Out-Null
Copy-Item (Join-Path $Stage '*.exe') $Portable
# The ZIP is portable by default; keep the marker out of the MSI staging directory.
Set-Content -LiteralPath (Join-Path $Portable 'portable.txt') -Encoding Ascii -Value 'SoundCraft portable mode: settings and logs are stored in SoundCraftData beside the executable.'
foreach ($f in 'README.md', 'LICENSE', 'LICENSE-MIT', 'LICENSE-APACHE', 'NOTICE', 'ATTRIBUTION.md') {
$p = Join-Path $Root $f
if (Test-Path $p) { Copy-Item $p $Portable }