Update ProcessRunner
This commit is contained in:
parent
714bb2ba50
commit
3af010c1f5
@ -276,13 +276,13 @@ namespace AaxDecrypter
|
|||||||
};
|
};
|
||||||
info.EnvironmentVariables["VARIABLE"] = decryptKey;
|
info.EnvironmentVariables["VARIABLE"] = decryptKey;
|
||||||
|
|
||||||
var (output, exitCode) = info.RunHidden();
|
var result = info.RunHidden();
|
||||||
|
|
||||||
// bad checksum -- bad decrypt key
|
// bad checksum -- bad decrypt key
|
||||||
if (output.Contains("checksums mismatch, aborting!"))
|
if (result.Output.Contains("checksums mismatch, aborting!"))
|
||||||
return -99;
|
return -99;
|
||||||
|
|
||||||
return exitCode;
|
return result.ExitCode;
|
||||||
}
|
}
|
||||||
|
|
||||||
// temp file names for steps 3, 4, 5
|
// temp file names for steps 3, 4, 5
|
||||||
|
|||||||
@ -21,8 +21,7 @@ namespace AaxDecrypter
|
|||||||
};
|
};
|
||||||
|
|
||||||
// checksum is in the debug info. ffprobe's debug info is written to stderr, not stdout
|
// checksum is in the debug info. ffprobe's debug info is written to stderr, not stdout
|
||||||
var readErrorOutput = true;
|
var ffprobeStderr = info.RunHidden().Error;
|
||||||
var ffprobeStderr = info.RunHidden(readErrorOutput).Output;
|
|
||||||
|
|
||||||
// example checksum line:
|
// example checksum line:
|
||||||
// ... [aax] file checksum == 0c527840c4f18517157eb0b4f9d6f9317ce60cd1
|
// ... [aax] file checksum == 0c527840c4f18517157eb0b4f9d6f9317ce60cd1
|
||||||
|
|||||||
@ -13,7 +13,7 @@
|
|||||||
<!-- <PublishSingleFile>true</PublishSingleFile> -->
|
<!-- <PublishSingleFile>true</PublishSingleFile> -->
|
||||||
<RuntimeIdentifier>win-x64</RuntimeIdentifier>
|
<RuntimeIdentifier>win-x64</RuntimeIdentifier>
|
||||||
|
|
||||||
<Version>3.1.12.196</Version>
|
<Version>3.1.12.214</Version>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user