Files
ILSpy/BuildTools/create-filelists.ps1
Siegfried Pammer 7a4dd35406 Fix the installer icon path and regenerate the VSIX/MSI file lists
create-filelists.ps1 filtered to bin\Debug with `-contains` (collection
membership, always false for a substring test), so it skipped every artifact;
drop the broken filter. Point the installer ProductIcon at the relocated
ILSpy.ico (Images -> Assets) and regenerate the committed .filelist snapshots.

Assisted-by: Claude:claude-opus-4-8:Claude Code
2026-06-10 00:08:58 +02:00

24 lines
609 B
PowerShell

$ErrorActionPreference = "Stop";
$Utf8NoBomEncoding = New-Object System.Text.UTF8Encoding $False
gci -Include *.vsix, *.msi -recurse | foreach ($_) {
Write-Host $_.FullName
$idx=-1;
$body=$false;
$outputFileName = ".\BuildTools\$($_.Name -replace '-\d+\.\d+\.\d+\.\d+', '').filelist";
$lines = 7z l $_.FullName | foreach {
if ($idx -eq -1) {
$idx = $_.IndexOf("Name");
}
$p = $body;
if ($idx -gt 0) {
$body = ($body -ne ($_ -match ' *-[ -]+'))
}
if ($p -and $body) {
$_.Substring($idx)
}
} | sort
[System.IO.File]::WriteAllLines($outputFileName, $lines, $Utf8NoBomEncoding)
}