Stability-AI / StableStudio

Community interface for generative AI
MIT License
8.73k stars 869 forks source link

Error during cargo tauri build #102

Open johari3275 opened 1 year ago

johari3275 commented 1 year ago

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

cmhamiche commented 1 year ago

Same on ubuntu 23.

airtonix commented 1 year ago

verify you have the tauri branch checked out.

git clone git@github.com: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

.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