Skip to content

Commit

Permalink
INCOMPATIBLE AGAIN
Browse files Browse the repository at this point in the history
  • Loading branch information
flabbet committed Dec 8, 2021
1 parent d93e056 commit 73a2a43
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 12 deletions.
9 changes: 0 additions & 9 deletions PixiEditor.UpdateModule/UpdateChannel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,5 @@ public UpdateChannel(string name, string repositoryOwner, string repositoryName)
ApiUrl = $"https://api.github.com/repos/{repositoryOwner}/{repositoryName}/releases/latest";
IncompatibleFileApiUrl = "https://raw.githubusercontent.com/" + $"{repositoryOwner}/{repositoryName}/" + "{0}/incompatible.json";
}

public UpdateChannel(string name, string repositoryOwner, string repositoryName, string incompatibleFileApiUrl)
{
Name = name;
RepositoryOwner = repositoryOwner;
RepositoryName = repositoryName;
IncompatibleFileApiUrl = incompatibleFileApiUrl;
ApiUrl = $"https://api.github.com/repos/{repositoryOwner}/{repositoryName}/releases/latest";
}
}
}
5 changes: 2 additions & 3 deletions PixiEditor/ViewModels/SubViewModels/Main/UpdateViewModel.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using System;
using System;
using System.ComponentModel;
using System.Diagnostics;
using System.IO;
Expand Down Expand Up @@ -195,8 +195,7 @@ private async void ConditionalUPDATE()
private void InitUpdateChecker()
{
UpdateChannels[0] = new UpdateChannel("Release", "PixiEditor", "PixiEditor");
UpdateChannels[1] = new UpdateChannel("Development", "PixiEditor", "PixiEditor-development-channel",
"https://raw.githubusercontent.com/PixiEditor/PixiEditor/{0}/incompatible.json");
UpdateChannels[1] = new UpdateChannel("Development", "PixiEditor", "PixiEditor-development-channel");

string updateChannel = IPreferences.Current.GetPreference<string>("UpdateChannel");

Expand Down

0 comments on commit 73a2a43

Please sign in to comment.