Add shortcut AMUID to nuspec

This commit is contained in:
Caelan Sayler
2024-05-24 17:32:52 +01:00
parent a486e3a254
commit 16bc19e967
2 changed files with 5 additions and 0 deletions

View File

@@ -39,6 +39,7 @@ public class WindowsPackCommandRunner : PackageBuilder<WindowsPackOptions>
// add nuspec metadata
ExtraNuspecMetadata["runtimeDependencies"] = GetRuntimeDependencies();
ExtraNuspecMetadata["shortcutLocations"] = GetShortcutLocations();
ExtraNuspecMetadata["shortcutAmuid"] = Utility.CreateGuidFromHash(Options.PackId).ToString();
// copy files to temp dir, so we can modify them
var dir = TempDir.CreateSubdirectory("PreprocessPackDirWin");

View File

@@ -27,6 +27,7 @@ namespace Velopack.NuGet
public string? Title { get; private set; }
public string? Summary { get; private set; }
public string? Copyright { get; private set; }
public string? ShortcutAmuid { get; private set; }
public IEnumerable<string> ShortcutLocations { get; private set; } = Enumerable.Empty<string>();
public IEnumerable<string> Authors { get; private set; } = Enumerable.Empty<string>();
public IEnumerable<string> RuntimeDependencies { get; private set; } = Enumerable.Empty<string>();
@@ -141,6 +142,9 @@ namespace Velopack.NuGet
case "shortcutLocations":
ShortcutLocations = getCommaDelimitedValue(value);
break;
case "shortcutAmuid":
ShortcutAmuid = value;
break;
}
}