Update get-url.ts

This commit is contained in:
Arnaud Levy 2025-04-13 12:10:19 +02:00 committed by GitHub
parent 6191baf0cc
commit 32321cc1a2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -9,14 +9,14 @@ export default function getURL(
version: string version: string
} }
): string { ): string {
let extendedStr = '';
if (options.extended === 'true') {
extendedStr = 'extended_';
}
let withdeployStr = ''; let withdeployStr = '';
if (options.withdeploy === 'true') { if (options.withdeploy === 'true') {
withdeployStr = 'withdeploy_'; withdeployStr = 'withdeploy_';
} }
let extendedStr = '';
if (options.extended === 'true' || withdeployStr) {
extendedStr = 'extended_';
}
let ext = 'tar.gz'; let ext = 'tar.gz';
if (system.os === 'Windows') { if (system.os === 'Windows') {
ext = 'zip'; ext = 'zip';