mirror of
https://github.com/AndnixSH/APKToolGUI.git
synced 2026-05-04 11:02:27 +00:00
Added check if stamp-cert-sha256 exists
This commit is contained in:
@@ -962,7 +962,8 @@ namespace APKToolGUI
|
||||
{
|
||||
string unsignedApkPath = Path.Combine(Path.GetDirectoryName(outputCompiledApkFile), Path.GetFileName(outputUnsignedApk));
|
||||
ZipUtils.AddDirectory(outputFile, Path.Combine(inputFolder, "original", "META-INF"), "META-INF");
|
||||
ZipUtils.AddFile(outputFile, Path.Combine(inputFolder, "original", "stamp-cert-sha256"));
|
||||
if (File.Exists(Path.Combine(inputFolder, "original", "stamp-cert-sha256")))
|
||||
ZipUtils.AddFile(outputFile, Path.Combine(inputFolder, "original", "stamp-cert-sha256"));
|
||||
ToLog(ApktoolEventType.Infomation, String.Format(Language.CopyFileTo, outputFile, unsignedApkPath));
|
||||
File.Copy(outputFile, unsignedApkPath, true);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user