Hopefully fix
This commit is contained in:
parent
3bd245b277
commit
9b1935e7a7
|
@ -1,6 +1,6 @@
|
|||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net5.0</TargetFramework>
|
||||
<TargetFramework>netcoreapp3.1</TargetFramework>
|
||||
<OutputType>Exe</OutputType>
|
||||
<RootNamespace>UpTool_build_tool</RootNamespace>
|
||||
<AssemblyName>pkgtool</AssemblyName>
|
||||
|
@ -18,4 +18,4 @@
|
|||
<PackageReference Include="CC-Functions.Misc" Version="1.1.7474.36199" />
|
||||
<PackageReference Include="System.CommandLine" Version="2.0.0-beta1.20427.1" />
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
</Project>
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
<PropertyGroup>
|
||||
<OutputType>Exe</OutputType>
|
||||
<TargetFramework>net5.0</TargetFramework>
|
||||
<TargetFramework>netcoreapp3.1</TargetFramework>
|
||||
<AssemblyName>uptool</AssemblyName>
|
||||
<Deterministic>false</Deterministic>
|
||||
<AssemblyVersion>1.0.*</AssemblyVersion>
|
||||
|
|
|
@ -22,11 +22,12 @@ namespace UpToolLib.Tool
|
|||
"https://raw.githubusercontent.com/CreepyCrafter24/UpTool2/master/Meta.xml",
|
||||
"https://raw.githubusercontent.com/JFronny/UpTool2/master/Meta.xml",
|
||||
"https://gist.githubusercontent.com/JFronny/f1ccbba3d8a2f5862592bb29fdb612c4/raw/Meta.xml",
|
||||
"https://github.com/JFronny/UpTool2/releases/latest/download/meta.xml"
|
||||
"https://github.com/JFronny/UpTool2/releases/latest/download/meta.xml",
|
||||
"https://gitlab.com/JFronny/UpTool2/-/jobs/artifacts/master/raw/meta.xml?job=uptool"
|
||||
}
|
||||
.Contains(meta.Element("UpdateSource").Value))
|
||||
meta.Element("UpdateSource").Value =
|
||||
"https://gitlab.com/JFronny/UpTool2/-/jobs/artifacts/master/raw/meta.xml?job=uptool";
|
||||
"https://gitlab.com/uptool/UpTool2/-/jobs/artifacts/master/raw/meta.xml?job=uptool";
|
||||
if (meta.Element("Repos") == null)
|
||||
meta.Add(new XElement("Repos"));
|
||||
if (meta.Element("Repos").Elements("Repo").Count() == 0)
|
||||
|
@ -36,7 +37,7 @@ namespace UpToolLib.Tool
|
|||
{
|
||||
meta.Element("Repos").Add(new XElement("Repo", new XElement("Name", "UpTool2 official Repo"),
|
||||
new XElement("Link",
|
||||
"https://gitlab.com/JFronny/UpTool2/snippets/1988600/raw")));
|
||||
"https://gitlab.com/uptool/UpTool2/-/snippets/1988600/raw/master/Repo.xml")));
|
||||
}
|
||||
}
|
||||
meta.Element("Repos").Elements("Repo").Select(s => s.Element("Link"))
|
||||
|
@ -44,14 +45,15 @@ namespace UpToolLib.Tool
|
|||
{
|
||||
null, "https://github.com/JFronny/UpTool2/releases/download/Repo/Repo.xml",
|
||||
"https://raw.githubusercontent.com/JFronny/UpTool2/master/Repo.xml",
|
||||
"https://gist.githubusercontent.com/JFronny/f1ccbba3d8a2f5862592bb29fdb612c4/raw/Repo.xml"
|
||||
"https://gist.githubusercontent.com/JFronny/f1ccbba3d8a2f5862592bb29fdb612c4/raw/Repo.xml",
|
||||
"https://gitlab.com/JFronny/UpTool2/snippets/1988600/raw"
|
||||
}.Contains(s.Value))
|
||||
.ToList().ForEach(s =>
|
||||
s.Value =
|
||||
"https://gitlab.com/JFronny/UpTool2/snippets/1988600/raw");
|
||||
"https://gitlab.com/uptool/UpTool2/-/snippets/1988600/raw/master/Repo.xml");
|
||||
if (meta.Element("LocalRepo") == null)
|
||||
meta.Add(new XElement("LocalRepo"));
|
||||
x.Save(PathTool.InfoXml);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Reference in New Issue