mirror of
https://github.com/Ryujinx/GtkSharp.git
synced 2024-12-22 19:25:42 +00:00
Add Version to settings
This commit is contained in:
parent
5a23b4c49c
commit
f49d8838fd
|
@ -2,6 +2,7 @@
|
|||
class Settings
|
||||
{
|
||||
public static ICakeContext Cake { get; set; }
|
||||
public static string Version { get; set; }
|
||||
public static string BuildTarget { get; set; }
|
||||
public static string Assembly { get; set; }
|
||||
public static List<GAssembly> AssemblyList { get; set; }
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
// VARS
|
||||
|
||||
Settings.Cake = Context;
|
||||
Settings.Version = "3.22.24.10";
|
||||
Settings.BuildTarget = Argument("BuildTarget", "Default");
|
||||
Settings.Assembly = Argument("Assembly", "");
|
||||
|
||||
|
@ -18,7 +19,7 @@ Task("Init")
|
|||
.Does(() =>
|
||||
{
|
||||
// Assign some common properties
|
||||
msbuildsettings = msbuildsettings.WithProperty("Version", "3.22.24.9");
|
||||
msbuildsettings = msbuildsettings.WithProperty("Version", Settings.Version);
|
||||
msbuildsettings = msbuildsettings.WithProperty("Authors", "'GtkSharp Contributors'");
|
||||
msbuildsettings = msbuildsettings.WithProperty("PackageLicenseUrl", "'https://github.com/cra0zy/GtkSharp/blob/cakecore/LICENSE'");
|
||||
|
||||
|
@ -117,7 +118,8 @@ Task("PackageTemplates")
|
|||
var settings = new NuGetPackSettings
|
||||
{
|
||||
BasePath = "Source/Templates/NetCore/GtkSharp.Template.CSharp",
|
||||
OutputDirectory = "BuildOutput/NugetPackages"
|
||||
OutputDirectory = "BuildOutput/NugetPackages",
|
||||
Version = Settings.Version
|
||||
};
|
||||
|
||||
NuGetPack("Source/Templates/NetCore/GtkSharp.Template.CSharp/GtkSharp.Template.CSharp.nuspec", settings);
|
||||
|
|
Loading…
Reference in a new issue