Skip to content

Commit

Permalink
added removal of DEV_MODE file on upgrades
Browse files Browse the repository at this point in the history
  • Loading branch information
Mgamerz committed Jan 23, 2018
1 parent 8e3c070 commit b50071e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions AlotAddOnGUI/App.xaml.cs
Original file line number Diff line number Diff line change
@@ -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;

0 comments on commit b50071e

Please sign in to comment.