Upload new LibZNI

This commit is contained in:
Zontreck 2020-09-10 09:29:51 -07:00
parent 3ab400b0d0
commit c5aac5438b
2 changed files with 23 additions and 2 deletions

View file

@ -1,10 +1,11 @@
using System;

using System;
using System.Collections.Generic;
using System.Text;
namespace LibZNI
{
[AttributeUsage(AttributeTargets.Assembly)]
[AttributeUsage(AttributeTargets.Assembly, AllowMultiple =false, Inherited =true)]
public class AutoUpdater : Attribute
{
public string AutoUpdaterProjectPath;
@ -16,5 +17,10 @@ namespace LibZNI
AutoUpdateEnabled = true;
AutoUpdateArtifact = artifact;
}
public string AsFinalURL(string CIServer)
{
return CIServer + AutoUpdaterProjectPath + "/lastSuccessfulBuild/artifact/" + AutoUpdateArtifact.Replace("!os!", Tools.GetOSShortID());
}
}
}