mirror of
https://github.com/velopack/velopack.git
synced 2025-10-25 15:19:22 +00:00
Add shortcut AMUID to nuspec
This commit is contained in:
@@ -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");
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user