Skip to content

Commit

Permalink
Autoupdaterfix (#189)
Browse files Browse the repository at this point in the history
* Have autoupdater look for Spritz.msi

* update version

Co-authored-by: acesnik <acesnik@chem.wisc.edu>
  • Loading branch information
Anthony and acesnik authored Aug 26, 2020
1 parent 4067e48 commit 31d66a2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Spritz/GUI/MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ namespace Spritz
/// </summary>
public partial class MainWindow : Window
{
public static readonly string CurrentVersion = "0.2.1";
public static readonly string CurrentVersion = "0.2.2";

private readonly ObservableCollection<RNASeqFastqDataGrid> RnaSeqFastqCollection = new ObservableCollection<RNASeqFastqDataGrid>();
private ObservableCollection<InRunTask> DynamicTasksObservableCollection = new ObservableCollection<InRunTask>();
Expand Down
8 changes: 4 additions & 4 deletions Spritz/GUI/SpritzUpdater.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,13 @@ private void InstallerClicked(object sender, RoutedEventArgs e)
DialogResult = true;
using (var client = new WebClient())
{
var uri = new Uri(@"https://github.com/smith-chem-wisc/Spritz/releases/download/" + NewestKnownVersion + @"/SpritzInstaller.msi");
var uri = new Uri(@"https://github.com/smith-chem-wisc/Spritz/releases/download/" + NewestKnownVersion + @"/Spritz.msi");

Exception exception = null;
try
{
// download and start the installer
var tempDownloadLocation = Path.Combine(System.IO.Path.GetTempPath(), "SpritzInstaller.msi");
var tempDownloadLocation = Path.Combine(System.IO.Path.GetTempPath(), "Spritz.msi");
client.DownloadFile(uri, tempDownloadLocation);
var p = new Process();
p.StartInfo = new ProcessStartInfo()
Expand Down Expand Up @@ -97,7 +97,7 @@ private void ReleaseHandler()
allVersionsText.AppendLine();
if (!IsMsiAvailableForUpdate)
{
allVersionsText.AppendLine("Warning: A new version of MetaMorpheus was detected, but the installer file hasn't been uploaded yet. Please try again in a few minutes.");
allVersionsText.AppendLine("Warning: A new version of Spritz was detected, but the installer file hasn't been uploaded yet. Please try again in a few minutes.");
Bt_DownloadAndRunInstaller.IsEnabled = false;
}
allVersionsText.AppendLine("</font>");
Expand All @@ -123,7 +123,7 @@ public static void GetVersionNumbersFromWeb()
if (!IsVersionLower(NewestKnownVersion))
{
var assets = deserialized["assets"].Select(b => b["name"].ToString()).ToList();
IsMsiAvailableForUpdate = assets.Contains("SpritzInstaller.msi");
IsMsiAvailableForUpdate = assets.Contains("Spritz.msi");
}
}
}
Expand Down

0 comments on commit 31d66a2

Please sign in to comment.