Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error during cargo tauri build #102

Open
johari3275 opened this issue Jul 30, 2023 · 2 comments
Open

Error during cargo tauri build #102

johari3275 opened this issue Jul 30, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@johari3275
Copy link

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

@johari3275 johari3275 added the bug Something isn't working label Jul 30, 2023
@cmhamiche
Copy link

Same on ubuntu 23.

@airtonix
Copy link

airtonix commented Aug 9, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants