[build] Fix static assets not being mapped correctly

This commit is contained in:
Laura Hausmann 2024-11-19 04:06:45 +01:00
parent 764e1a01ec
commit 3dd85deb0d
No known key found for this signature in database
GPG key ID: D044E84C5BE01605
2 changed files with 5 additions and 4 deletions

View file

@ -35,7 +35,7 @@
<!-- This rewrites the static asset endpoints JSON file to enable transparent decompression. -->
<Target Name="_RewriteStaticAssetManifest" AfterTargets="KeepOnlyBrotliCompressedStaticAssets">
<RewriteStaticAssetManifest Manifest="$(StaticWebAssetEndpointsBuildManifestPath)" />
<RewriteStaticAssetManifest Manifest="$(PublishDir)\Iceshrimp.Backend.staticwebassets.endpoints.json" />
</Target>
</Project>

View file

@ -123,10 +123,11 @@ public class RewriteStaticAssetManifest : Microsoft.Build.Utilities.Task
}
}
private sealed class StaticAssetSelector(string name, string value)
private sealed class StaticAssetSelector(string name, string value, string quality)
{
public string Name { get; } = name;
public string Value { get; } = value;
public string Name { get; } = name;
public string Value { get; } = value;
public string Quality { get; } = quality;
}
private sealed class StaticAssetProperty(string name, string value)