mirror of https://github.com/icsharpcode/ILSpy.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
753 B
25 lines
753 B
$ErrorActionPreference = "Stop"; |
|
|
|
$Utf8NoBomEncoding = New-Object System.Text.UTF8Encoding $False |
|
|
|
gci -Include *.vsix, *.msi -recurse | foreach ($_) { |
|
if (-not ($_.FullName -contains "\bin\Debug\")) { |
|
continue; |
|
} |
|
$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) |
|
}
|
|
|