Error during cargo tauri build
Describe the bug
cargo tauri build
thread 'main' panicked at 'Couldn't recognize the current folder as a Tauri project. It must contain a tauri.conf.json, tauri.conf.json5 or Tauri.toml file in any subfolder.', C:\Users\User.cargo\registry\src\index.crates.io-6f17d22bba15001f\tauri-cli-1.4.0\src\helpers\app_paths.rs:74:5
note: run with RUST_BACKTRACE=1 environment variable to display a backtrace
To Reproduce running on windows 11, conda env
Same on ubuntu 23.
verify you have the tauri branch checked out.
git clone [email protected]:Stability-AI/StableStudio.git
cd StableStudio
git checkout tauri
then get rust, node and yarn installed
node -v
# v18.17.0
cargo --version
# cargo 1.71.1 (7f1d04c00 2023-07-29)
yarn
# install spam
cargo install tauri-cli
# install spam
cargo tauri build
for the mac and linux people add the following to the root of the project:
setup.sh
- from this gist https://gist.github.com/airtonix/1031cd7b4e9745c73b385204f7a9688d
.tool-versions
nodejs 18.17.0
rust 1.71.1
yarn 1.22.19
then run
chmod +x ./setup.sh
./setup.sh
It'll download and install nodejs, rust and yarn making those versions available when you're in this directory.
then:
node -v
# v18.17.0
cargo --version
# cargo 1.71.1 (7f1d04c00 2023-07-29)
yarn
# install spam
cargo install tauri-cli
# install spam
cargo tauri build