mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 04:19:13 +00:00
Publish platform-specific Code VSIXes
This commit is contained in:
parent
4c686721c0
commit
9c74f646f4
4 changed files with 104 additions and 59 deletions
|
@ -221,9 +221,18 @@ async function bootstrapExtension(config: Config, state: PersistentState): Promi
|
|||
);
|
||||
if (userResponse !== "Update") return;
|
||||
|
||||
const artifact = latestNightlyRelease.assets.find(artifact => artifact.name === "rust-analyzer.vsix");
|
||||
assert(!!artifact, `Bad release: ${JSON.stringify(latestNightlyRelease)}`);
|
||||
let arch = process.arch;
|
||||
if (arch === "ia32") {
|
||||
arch = "x64";
|
||||
}
|
||||
let platform = process.platform as string;
|
||||
if (platform === "linux" && isMusl()) {
|
||||
platform = "alpine";
|
||||
}
|
||||
const artifactName = `rust-analyzer-${platform}-${arch}.vsix`;
|
||||
|
||||
const artifact = latestNightlyRelease.assets.find(artifact => artifact.name === artifactName);
|
||||
assert(!!artifact, `Bad release: ${JSON.stringify(latestNightlyRelease)}`);
|
||||
const dest = vscode.Uri.joinPath(config.globalStorageUri, "rust-analyzer.vsix");
|
||||
|
||||
await downloadWithRetryDialog(state, async () => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue