Skip to content

Commit

Permalink
Restore engine-specific packaging for Fab (#39)
Browse files Browse the repository at this point in the history
Turns out Fab doesn't actually support a single upload for multiple engine versions for code plugins, and we still need to submit (mostly identical) packages to them for each engine version.
  • Loading branch information
hach-que authored Oct 31, 2024
1 parent 56dd356 commit afafb82
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -74,18 +74,19 @@ public async Task<int> ExecuteAsync(InvocationContext context)
return 1;
}

if (packageType != BuildConfigPluginPackageType.Fab)

//if (packageType != BuildConfigPluginPackageType.Fab)
{
node["EngineVersion"] = engineVersion;
}
else
/*else
{
var obj = node.AsObject();
if (obj.ContainsKey("EngineVersion"))
{
obj.Remove("EngineVersion");
}
}
}*/
node["VersionName"] = versionName;
node["Version"] = ulong.Parse(versionNumber, CultureInfo.InvariantCulture);
node["Installed"] = true;
Expand Down
4 changes: 2 additions & 2 deletions UET/uet/Services/DefaultPluginVersioning.cs
Original file line number Diff line number Diff line change
Expand Up @@ -72,14 +72,14 @@ public DefaultPluginVersioning(
var versionNumber = pluginVersioningType switch
{
BuildConfigPluginPackageType.Marketplace => $"{unixTimestamp}{engineInfo.MinorVersion}",
BuildConfigPluginPackageType.Fab => $"{unixTimestamp}",
BuildConfigPluginPackageType.Fab => $"{unixTimestamp}{engineInfo.MinorVersion}",
BuildConfigPluginPackageType.Generic => $"{unixTimestamp}{engineInfo.MinorVersion}",
_ => throw new NotSupportedException("The value of 'BuildConfigPluginPackageType' is not supported in ComputeVersionNameAndNumberAsync."),
};
var versionName = pluginVersioningType switch
{
BuildConfigPluginPackageType.Marketplace => $"{versionDateTime}-{engineInfo.MajorVersion}.{engineInfo.MinorVersion}-{ciCommitShortSha[..8]}",
BuildConfigPluginPackageType.Fab => $"{versionDateTime}-{ciCommitShortSha[..8]}",
BuildConfigPluginPackageType.Fab => $"{versionDateTime}-{engineInfo.MajorVersion}.{engineInfo.MinorVersion}-{ciCommitShortSha[..8]}",
BuildConfigPluginPackageType.Generic => $"{versionDateTime}-{engineInfo.MajorVersion}.{engineInfo.MinorVersion}-{ciCommitShortSha[..8]}",
_ => throw new NotSupportedException("The value of 'BuildConfigPluginPackageType' is not supported in ComputeVersionNameAndNumberAsync."),
};
Expand Down

0 comments on commit afafb82

Please sign in to comment.