diff options
author | Aleksey Kladov <[email protected]> | 2018-09-16 00:02:25 +0100 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2018-09-16 00:02:25 +0100 |
commit | 5b70e5cf0c96c1de02b86b535ab8441f1e1b0d32 (patch) | |
tree | 71f6cb6fa4e20086079fad0e49a8f0019da5978c /crates | |
parent | 722706fe41e556530bd9b49c8afa8c7ade577919 (diff) |
fix installation for windows
Diffstat (limited to 'crates')
-rw-r--r-- | crates/tools/src/main.rs | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/crates/tools/src/main.rs b/crates/tools/src/main.rs index 3f9caa4be..597d07d80 100644 --- a/crates/tools/src/main.rs +++ b/crates/tools/src/main.rs | |||
@@ -191,9 +191,17 @@ fn existing_tests(dir: &Path) -> Result<HashMap<String, (PathBuf, Test)>> { | |||
191 | 191 | ||
192 | fn install_code_extension() -> Result<()> { | 192 | fn install_code_extension() -> Result<()> { |
193 | run("cargo install --path crates/server --force", ".")?; | 193 | run("cargo install --path crates/server --force", ".")?; |
194 | run(r"npm install", "./code")?; | 194 | if cfg!(windows) { |
195 | run(r"./node_modules/vsce/out/vsce package", "./code")?; | 195 | run(r"cmd.exe /c npm.cmd install", "./code")?; |
196 | run(r"code --install-extension ./rcf-lsp-0.0.1.vsix", "./code")?; | 196 | } else { |
197 | run(r"npm install", "./code")?; | ||
198 | } | ||
199 | run(r"node ./node_modules/vsce/out/vsce package", "./code")?; | ||
200 | if cfg!(windows) { | ||
201 | run(r"cmd.exe /c code.cmd --install-extension ./rcf-lsp-0.0.1.vsix", "./code")?; | ||
202 | } else { | ||
203 | run(r"code --install-extension ./rcf-lsp-0.0.1.vsix", "./code")?; | ||
204 | } | ||
197 | Ok(()) | 205 | Ok(()) |
198 | } | 206 | } |
199 | 207 | ||