From b50071ed93588cff50c899c809fc9f871f647679 Mon Sep 17 00:00:00 2001 From: Mgamerz Date: Tue, 23 Jan 2018 13:17:10 -0700 Subject: [PATCH] added removal of DEV_MODE file on upgrades --- AlotAddOnGUI/App.xaml.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/AlotAddOnGUI/App.xaml.cs b/AlotAddOnGUI/App.xaml.cs index b3c79f1b..0b764eba 100644 --- a/AlotAddOnGUI/App.xaml.cs +++ b/AlotAddOnGUI/App.xaml.cs @@ -141,6 +141,11 @@ public App() : base() File.Delete(updateDestinationPath + "manifest-bundled.xml"); } + if (File.Exists(updateDestinationPath + "DEV_MODE")) + { + Log.Information("Pulling application out of developer mode"); + File.Delete(updateDestinationPath + "DEV_MODE"); + } Log.Information("Rebooting into normal mode to complete update: " + updateDestinationPath + System.AppDomain.CurrentDomain.FriendlyName); ProcessStartInfo psi = new ProcessStartInfo(updateDestinationPath + System.AppDomain.CurrentDomain.FriendlyName); psi.WorkingDirectory = updateDestinationPath;