blob: 1b73bcc3227b5c53e141f3358fa946b9e1cba7d8 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
const VERSION = "v2.2.2"
const platform = os.platform();
const target = (() => {
switch (platform) {
case "darwin":
return `https://github.com/latex-lsp/texlab/releases/download/${VERSION}/texlab-x86_64-macos.tar.gz`;
case "win32": {
console.error(chalk.red("Windows is currently not supported."));
process.exit(1);
break;
}
default:
return `https://github.com/latex-lsp/texlab/releases/download/${VERSION}/texlab-x86_64-linux.tar.gz`;
}
})();
await $`wget -O texlab.tar.gz ${target}`
await $`tar xf texlab.tar.gz`
await $`rm texlab.tar.gz`
|