koute / cargo-web

A Cargo subcommand for the client-side Web
Apache License 2.0
1.1k stars 80 forks source link

Installing cargo web errors out when emscripten uninstalled #207

Open elichai opened 5 years ago

elichai commented 5 years ago

Hi I'm trying to install emscripten using #52 in my CI like this:

rustup target add asmjs-unknown-emscripten && cargo install --force cargo-web && cargo web prepare-emscripten

but cargo install --force cargo-web fails with this:

  Installing C:\Users\appveyor\.cargo\bin\cargo-web.exe
   Installed package `cargo-web v0.6.26` (executable `cargo-web.exe`)
error: you don't have Emscripten installed!
Download and install emscripten from the official site: http://kripken.github.io/emscripten-site/docs/getting_started/downloads.html
koute commented 5 years ago

This subcommand is only supported on Linux; unfortunately on windows the Emscripten has to be installed manually.

elichai commented 5 years ago

Yeah I figured that out :/ I'm running this long thing instead: git clone https://github.com/emscripten-core/emsdk.git && cd emsdk && emsdk install latest && emsdk activate latest --global && emsdk_env.bat