GitHub to GitLab in Installer
This commit is contained in:
parent
a8479cd577
commit
984044f1b0
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Reference in New Issue