chore: updater channel logic

This commit is contained in:
Tunglies 2025-03-25 01:49:51 +08:00
parent 20e93ecc8e
commit 0842c7343d

View File

@ -78,6 +78,7 @@ async function resolveUpdater() {
async function processRelease(github, options, tag, isAlpha) { async function processRelease(github, options, tag, isAlpha) {
if (!tag) return; if (!tag) return;
try {
const { data: release } = await github.rest.repos.getReleaseByTag({ const { data: release } = await github.rest.repos.getReleaseByTag({
...options, ...options,
tag: tag.name, tag: tag.name,
@ -297,6 +298,16 @@ async function processRelease(github, options, tag, isAlpha) {
error.message, error.message,
); );
} }
} catch (error) {
if (error.status === 404) {
console.log(`Release not found for tag: ${tag.name}, skipping...`);
} else {
console.error(
`Failed to get release for tag: ${tag.name}`,
error.message,
);
}
}
} }
// get the signature file content // get the signature file content