qwen-code/scripts/release-asset-config.js
2026-05-11 15:58:07 +08:00

21 lines
583 B
JavaScript

/**
* @license
* Copyright 2025 Qwen Team
* SPDX-License-Identifier: Apache-2.0
*/
const STANDALONE_ARCHIVE_PREFIX = 'qwen-code-';
// Keep this extension allowlist in sync with the standalone packager target
// output extensions and the release workflow upload globs.
const STANDALONE_ARCHIVE_EXTENSIONS = ['.tar.gz', '.zip'];
function isStandaloneArchiveName(fileName) {
return (
fileName.startsWith(STANDALONE_ARCHIVE_PREFIX) &&
STANDALONE_ARCHIVE_EXTENSIONS.some((extension) =>
fileName.endsWith(extension),
)
);
}
export { isStandaloneArchiveName };