Update release and remove executable in tools

This commit is contained in:
vczh
2023-01-21 03:44:28 -08:00
parent 86987d84e8
commit 6c5ec673e1
13 changed files with 571 additions and 234 deletions
Binary file not shown.
+4 -4
View File
@@ -38,7 +38,7 @@ function EnumerateResourceFiles([String] $FileName) {
}
<#
Call GacGen32.exe to dump metadatas from resource files.
Call GacGen.exe to dump metadatas from resource files.
Input files is save in $($FileName).log\ResourceFiles.txt, which is generated by EnumerateResourceFiles function
Output files is specified in $ResourceDumpFiles(resource_file_name => dump_file_name)
#>
@@ -55,7 +55,7 @@ function DumpResourceFiles([String] $FileName, [HashTable]$ResourceDumpFiles) {
$ResourceDumpFiles.Keys | ForEach-Object {
$input_file = $_
$output_file = $ResourceDumpFiles[$_]
Start-Process-And-Wait (,("$PSScriptRoot\GacGen32.exe", "/D `"$($input_file)`" `"$($output_file)`"")) $true
Start-Process-And-Wait (,("$PSScriptRoot\GacGen.exe", "/D32 `"$($input_file)`" `"$($output_file)`"")) $true
if (-not (Test-Path -Path $output_file)) {
throw "Failed to dump GacUI Xml Resource File: " + $input_file
}
@@ -216,8 +216,8 @@ Given all metadata dumps $ResourceDumps(resource_file_name => Xml dump),
write all paths of named resource files in the correct build order to $OutputNames,
with all "resource_name=>resource_file_path" to $OutputMapping.
The $OutputMapping will be consumed
GacGen32.exe /P <resource-xml> <HERE>
GacGen32.exe /P <resource-xml> <HERE>
GacGen.exe /P32 <resource-xml> <HERE>
GacGen.exe /P64 <resource-xml> <HERE>
as an optional parameter
#>
function EnumerateNamedResources([HashTable] $ResourceDumps, [String] $OutputNames, [String] $OutputMapping) {
+2 -2
View File
@@ -7,8 +7,8 @@ param (
Write-Host "Compiling GacUI Resource: $FileName ..."
Remove-Item -Path "$($FileName).log" -Recurse -ErrorAction Ignore | Out-Null
Start-Process-And-Wait (,("$PSScriptRoot\GacGen32.exe", "/P $FileName $MappingFileName"))
Start-Process-And-Wait (,("$PSScriptRoot\GacGen64.exe", "/P $FileName $MappingFileName"))
Start-Process-And-Wait (,("$PSScriptRoot\GacGen.exe", "/P32 $FileName $MappingFileName"))
Start-Process-And-Wait (,("$PSScriptRoot\GacGen.exe", "/P64 $FileName $MappingFileName"))
if (Test-Path -Path "$($FileName).log\x32\Errors.txt") {
Write-Host (Get-Content "$($FileName).log\x32\Errors.txt") -ForegroundColor Red -Separator "`r`n"
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.