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.Drawing;
|
||||||
using System.Globalization;
|
using System.Globalization;
|
||||||
using System.IO;
|
using System.IO;
|
||||||
|
@ -43,7 +43,7 @@ namespace Installer
|
||||||
progress.Visible = true;
|
progress.Visible = true;
|
||||||
WebClient client = new WebClient();
|
WebClient client = new WebClient();
|
||||||
Step(1, "Downloading metadata");
|
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");
|
.Element("meta");
|
||||||
Step(2, "Downloading binary");
|
Step(2, "Downloading binary");
|
||||||
byte[] dl = client.DownloadData(meta.Element("File").Value);
|
byte[] dl = client.DownloadData(meta.Element("File").Value);
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
using System;
|
using System;
|
||||||
using System.CommandLine;
|
using System.CommandLine;
|
||||||
using System.CommandLine.Invocation;
|
using System.CommandLine.Invocation;
|
||||||
using System.IO;
|
using System.IO;
|
||||||
|
@ -46,7 +46,7 @@ namespace Installer
|
||||||
{
|
{
|
||||||
WebClient client = new WebClient();
|
WebClient client = new WebClient();
|
||||||
Console.WriteLine("Downloading metadata");
|
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");
|
Console.WriteLine("Downloading binary");
|
||||||
byte[] dl = client.DownloadData(UpdateCheck.App);
|
byte[] dl = client.DownloadData(UpdateCheck.App);
|
||||||
Console.WriteLine("Verifying integrity");
|
Console.WriteLine("Verifying integrity");
|
||||||
|
|
Reference in New Issue
Block a user