this is supposed to be the last commit, I forgot to save earlier

pull/8/head
Miepee 6 years ago
parent 039ca169b0
commit ae5e12402c

@ -132,9 +132,13 @@ namespace AM2RLauncher
foreach (var file in new DirectoryInfo(tmpUpdatePath).GetFiles()) foreach (var file in new DirectoryInfo(tmpUpdatePath).GetFiles())
{ {
log.Info("Moving " + tmpUpdatePath + file.FullName + " to " + CrossPlatformOperations.CURRENTPATH + "/" + file.Name); log.Info("Moving " + file.FullName + " to " + CrossPlatformOperations.CURRENTPATH + "/" + file.Name);
File.Copy(tmpUpdatePath + file.FullName, CrossPlatformOperations.CURRENTPATH + "/" + file.Name, true); File.Copy(file.FullName, CrossPlatformOperations.CURRENTPATH + "/" + file.Name, true);
} }
// for windows, the actual application is in "AM2RLauncher.dll". Which means, we need to update the lib folder as well.
if (currentPlatform.IsWinForms)
MainForm.DirectoryCopy(tmpUpdatePath + "lib", CrossPlatformOperations.CURRENTPATH + "/lib", true);
Directory.Delete(tmpUpdatePath, true); Directory.Delete(tmpUpdatePath, true);
CrossPlatformOperations.CopyOldConfigToNewConfig(); CrossPlatformOperations.CopyOldConfigToNewConfig();

Loading…
Cancel
Save