diff --git a/Installer/InstallerForm.cs b/Installer/InstallerForm.cs index 94c1925..e6e76c4 100644 --- a/Installer/InstallerForm.cs +++ b/Installer/InstallerForm.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Drawing; using System.Globalization; using System.IO; @@ -43,7 +43,7 @@ namespace Installer progress.Visible = true; WebClient client = new WebClient(); Step(1, "Downloading metadata"); - XElement meta = XDocument.Load("https://github.com/JFronny/UpTool2/releases/latest/download/meta.xml") + XElement meta = XDocument.Load("https://gitlab.com/JFronny/UpTool2/-/jobs/artifacts/master/raw/meta.xml?job=uptool") .Element("meta"); Step(2, "Downloading binary"); byte[] dl = client.DownloadData(meta.Element("File").Value); @@ -136,4 +136,4 @@ Online: {meta.Element("Hash").Value.ToUpper()}"); updateAppsBox.Checked = false; } } -} \ No newline at end of file +} diff --git a/InstallerCLI/Program.cs b/InstallerCLI/Program.cs index 894fe59..0f6feb9 100644 --- a/InstallerCLI/Program.cs +++ b/InstallerCLI/Program.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.CommandLine; using System.CommandLine.Invocation; using System.IO; @@ -46,7 +46,7 @@ namespace Installer { WebClient client = new WebClient(); Console.WriteLine("Downloading metadata"); - UpdateCheck.Reload("https://github.com/JFronny/UpTool2/releases/latest/download/meta.xml"); + UpdateCheck.Reload("https://gitlab.com/JFronny/UpTool2/-/jobs/artifacts/master/raw/meta.xml?job=uptool"); Console.WriteLine("Downloading binary"); byte[] dl = client.DownloadData(UpdateCheck.App); Console.WriteLine("Verifying integrity"); @@ -79,4 +79,4 @@ Online: {UpdateCheck.AppHash}"); RepoManagement.FetchRepos(); } } -} \ No newline at end of file +}