Skip to content

Commit 838e5d0

Browse files
committed
Add default tools version
Add default picotool & tools versions of vX.X.X-0 if the actual corresponding version is not known. This should prevent errors when the versionBundles.json online has been updated for a new SDK, but local extensions have not been updated.
1 parent 57e43c2 commit 838e5d0

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/utils/download.mts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -882,10 +882,11 @@ export async function downloadAndInstallTools(
882882
: "-x86_64"
883883
: ""
884884
}-${TOOLS_PLATFORMS[process.platform]}.${assetExt}`;
885+
const releaseVersion = TOOLS_RELEASES[version] ?? "v" + version + "-0";
885886

886887
return downloadAndInstallGithubAsset(
887888
version,
888-
TOOLS_RELEASES[version],
889+
releaseVersion,
889890
GithubRepository.tools,
890891
targetDirectory,
891892
archiveFileName,
@@ -911,10 +912,11 @@ export async function downloadAndInstallPicotool(
911912
: "-x86_64"
912913
: ""
913914
}-${TOOLS_PLATFORMS[process.platform]}.${assetExt}`;
915+
const releaseVersion = PICOTOOL_RELEASES[version] ?? "v" + version + "-0";
914916

915917
return downloadAndInstallGithubAsset(
916918
version,
917-
PICOTOOL_RELEASES[version],
919+
releaseVersion,
918920
GithubRepository.tools,
919921
targetDirectory,
920922
archiveFileName,

0 commit comments

Comments
 (0)