koute / cargo-web

A Cargo subcommand for the client-side Web

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Installing cargo web errors out when emscripten uninstalled

elichai opened this issue · comments

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
commented

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

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