Fix windows binary download path

Signed-off-by: trivernis <trivernis@protonmail.com>
main
trivernis 4 years ago
parent 15df4b90f4
commit 7ac7dd1cd9
Signed by: Trivernis
GPG Key ID: DFFFCC2C7A02DB45

@ -13,7 +13,7 @@
"url": "https://github.com/Trivernis/snekdown-vscode-extension.git" "url": "https://github.com/Trivernis/snekdown-vscode-extension.git"
}, },
"description": "Preview and commands for the snekdown markdown flavour", "description": "Preview and commands for the snekdown markdown flavour",
"version": "0.9.1", "version": "0.9.2",
"engines": { "engines": {
"vscode": "^1.52.0" "vscode": "^1.52.0"
}, },

@ -75,7 +75,7 @@ export class SnekdownWrapper {
switch (os.platform()) { switch (os.platform()) {
case 'win32': case 'win32':
execPath = this.buildExecutablePath(SNEKDOWN_FILE_WINDOWS); execPath = this.buildExecutablePath(SNEKDOWN_FILE_WINDOWS);
await fetch(SNEKDOWN_FILE_WINDOWS).then(res => { await fetch(SNEKDOWN_URL_WINDOWS).then(res => {
fs.writeFileSync(execPath, res.buffer); fs.writeFileSync(execPath, res.buffer);
}); });
this.executable = execPath; this.executable = execPath;

Loading…
Cancel
Save