Skip to content

Commit 330e595

Browse files
authored
Allow renaming the prerelease VSIX (#1530)
Since pre-release is always 1 minor version higher, we know it's the second binary
1 parent 94ff8f0 commit 330e595

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

scripts/download_vsix.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,5 +59,9 @@ const repo = repository.split("/")[1];
5959
const newName = process.env["VSCODE_SWIFT_VSIX"] || "vscode-swift.vsix";
6060
await rename(files[0].path, newName);
6161
console.log(`Renamed artifact: ${files[0].path} => ${newName}`);
62+
const preNewName =
63+
process.env["VSCODE_SWIFT_PRERELEASE_VSIX"] || "vscode-swift-prerelease.vsix";
64+
await rename(files[1].path, preNewName);
65+
console.log(`Renamed artifact: ${files[1].path} => ${preNewName}`);
6266
await unlink("artifacts.zip");
6367
})();

0 commit comments

Comments
 (0)