Skip to content

Commit

Permalink
Update to use VPMVersion
Browse files Browse the repository at this point in the history
  • Loading branch information
JLChnToZ committed Nov 23, 2024
1 parent 635b9a0 commit d6dfc27
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions PackageBuilder/Build.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
using VRC.PackageManagement.Core.Types.Packages;
using ProductHeaderValue = Octokit.ProductHeaderValue;
using ListingSource = VRC.PackageManagement.Automation.Multi.ListingSource;
using SemVer = SemanticVersioning.Version;
using VPMVersion = VRC.PackageManagement.Core.Types.VPMVersion.Version;

namespace VRC.PackageManagement.Automation
{
Expand Down Expand Up @@ -235,7 +235,7 @@ ListingSource MakeListingSourceFromManifest(VRCPackageManifest manifest)

Serilog.Log.Information($"Made listingInfo {JsonConvert.SerializeObject(listingInfo, JsonWriteOptions)}");

var latestPackages = packages.OrderByDescending(p => new SemVer(p.Version, true)).DistinctBy(p => p.Id).ToList();
var latestPackages = packages.OrderByDescending(p => new VPMVersion(p.Version, true)).DistinctBy(p => p.Id).ToList();
Serilog.Log.Information($"LatestPackages: {JsonConvert.SerializeObject(latestPackages, JsonWriteOptions)}");
var formattedPackages = latestPackages.ConvertAll(p => new {
Name = p.Id,
Expand Down

0 comments on commit d6dfc27

Please sign in to comment.