mirror of
https://github.com/icsharpcode/ILSpy.git
synced 2026-10-12 02:15:58 +00:00
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
24 lines
609 B
PowerShell
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)
|
|
}
|