mirror of
https://github.com/vczh-libraries/Release.git
synced 2026-05-26 17:55:52 +08:00
Update release and remove executable in tools
This commit is contained in:
Binary file not shown.
+4
-4
@@ -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
@@ -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.
Reference in New Issue
Block a user