From 5bf32bcc3f6948824f3d9f37b010ecb315eac130 Mon Sep 17 00:00:00 2001 From: asalde_le1 <57564314+asaldele1@users.noreply.github.com> Date: Wed, 8 May 2024 11:44:05 +0300 Subject: [PATCH] Add AppxSignature.p7x file deletion after importing appx --- MCLauncher/MainWindow.xaml.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/MCLauncher/MainWindow.xaml.cs b/MCLauncher/MainWindow.xaml.cs index da4c5e4..63da076 100644 --- a/MCLauncher/MainWindow.xaml.cs +++ b/MCLauncher/MainWindow.xaml.cs @@ -162,6 +162,7 @@ private async void ImportButtonClicked(object sender, RoutedEventArgs e) { await Task.Run(() => { try { ZipFile.ExtractToDirectory(openFileDlg.FileName, directory); + File.Delete(Path.Combine(directory, "AppxSignature.p7x")); } catch (InvalidDataException ex) { Debug.WriteLine("Failed extracting appx " + openFileDlg.FileName + ": " + ex.ToString()); MessageBox.Show("Failed to import appx " + openFileDlg.SafeFileName + ". It may be corrupted or not an appx file.\n\nExtraction error: " + ex.Message, "Import failure");