Closed metamas closed 1 year ago
I believe the required fix would be adding cargo install tauri-cli
to the build steps, thanks for raising this. It should be a quick PR, or I can do it.
I believe this has been clarified with f3b7d20
That would also install tauri
CLI globally, like I did with npm install -g @tauri-apps/cli
, correct? Is there a difference/preference between which package manager you use to install the tauri
CLI?
Describe the bug Following the provided instructions does not get get one to a running development environment with
tauri
.To Reproduce After running
yarn install
from the project root, and then runningcargo tauri build
orcargo tauri dev
, you get:This same error shows if you run
yarn dev
from either the project root or withinpackages/stablestudio-ui/src-tauri
.There is no
Cargo.toml
in the root directory, so I went topackages/stablestudio-ui/src-tauri
and rancargo build
, then tried all of the above again. Still no luck.Finally I installed the Tauri CLI globally with
npm install -g @tauri-apps/cli
, and then rantauri dev
, which seems to get things running as expected — the UI is currently launched and still "Downloading ComfyUI..." (I have a slow connection).Expected behavior It seems the instructions should be clearer to get a development environment running for the
tauri
branch.Should
cargo tauri build
orcargo tauri dev
have worked without error?Is it expected that
tauri
globally installed?If I'm right about a need for these clarifications, I'm happy to PR with improved instructions. But first I need to be sure about what's going on here, and what I may still be missing. Admittedly, the Rust toolchain is pretty unfamiliar to me.
Seems like the major issue is that
cargo
does not have access to atauri
executable, even after runningcargo build
withinpackages/stablestudio-ui/src-tauri
. Even tryingcargo install tauri
will tell you that its a library only crate.Desktop: