build(release): simplify v0.1.0 visible assets
This commit is contained in:
@@ -41,6 +41,18 @@ const validatePolicy = (policy) => {
|
||||
exception?.updaterFeedActivation === "after-combined-platform-verification",
|
||||
`${prefix} must withhold the production updater feed until both platforms are verified.`,
|
||||
);
|
||||
assert(
|
||||
exception?.githubReleaseAssetProfile === "installer-and-checksum-only",
|
||||
`${prefix} must keep the user-facing GitHub Release limited to installers and their checksum manifest.`,
|
||||
);
|
||||
assert(
|
||||
exception?.stagedEvidenceRetention === "private-until-updater-publish",
|
||||
`${prefix} must retain updater artifacts and release evidence privately until updater publication.`,
|
||||
);
|
||||
assert(
|
||||
exception?.updaterArtifactPublishTarget === "anonymous-https-origin",
|
||||
`${prefix} must publish updater artifacts to an anonymous HTTPS origin.`,
|
||||
);
|
||||
}
|
||||
assert(/^\d{4}-\d{2}-\d{2}$/.test(exception?.approvedOn || ""), `${prefix} must record an approval date.`);
|
||||
assert(
|
||||
@@ -92,6 +104,9 @@ export const resolveDesktopReleasePolicy = (version, policy) => {
|
||||
macosLocalExactTagFallback: exception.macosLocalExactTagFallback === true,
|
||||
windowsDelivery: exception.windowsDelivery,
|
||||
updaterFeedActivation: exception.updaterFeedActivation,
|
||||
githubReleaseAssetProfile: exception.githubReleaseAssetProfile,
|
||||
stagedEvidenceRetention: exception.stagedEvidenceRetention,
|
||||
updaterArtifactPublishTarget: exception.updaterArtifactPublishTarget,
|
||||
exception,
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user