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

Ошибка при сборке #118

Open
CyberSec17 opened this issue Mar 27, 2024 · 1 comment
Open

Ошибка при сборке #118

CyberSec17 opened this issue Mar 27, 2024 · 1 comment

Comments

@CyberSec17
Copy link

error[E0277]: the trait bound BundleResources: Default is not satisfied
--> C:\Users\CyberSec17.cargo\registry\src\index.crates.io-6f17d22bba15001f\tauri-build-1.3.0\src\lib.rs:330:61
|
330 | let mut resources = config.tauri.bundle.resources.clone().unwrap_or_default();
| ^^^^^^^^^^^^^^^^^ the trait Default is not implemented for BundleResources
|
note: required by a bound in std::option::Option::<T>::unwrap_or_default
--> C:\Users\CyberSec17.rustup\toolchains\stable-x86_64-pc-windows-msvc\lib/rustlib/src/rust\library\core\src\option.rs:1003:12
|
1001 | pub fn unwrap_or_default(self) -> T
| ----------------- required by a bound in this associated function
1002 | where
1003 | T: Default,
| ^^^^^^^ required by this bound in Option::<T>::unwrap_or_default

error[E0599]: no method named as_slice found for enum BundleResources in the current scope
--> C:\Users\CyberSec17.cargo\registry\src\index.crates.io-6f17d22bba15001f\tauri-build-1.3.0\src\lib.rs:338:47
|
338 | copy_resources(ResourcePaths::new(resources.as_slice(), true), target_dir)?;
| ^^^^^^^^ method not found in BundleResources
|
note: the method as_slice exists on the type Vec<std::string::String>
--> C:\Users\CyberSec17.rustup\toolchains\stable-x86_64-pc-windows-msvc\lib/rustlib/src/rust\library\alloc\src\vec\mod.rs:1193:5
|
1193 | pub fn as_slice(&self) -> &[T] {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Some errors have detailed explanations: E0277, E0599.
For more information about an error, try rustc --explain E0277.
error: could not compile tauri-build (lib) due to 2 previous errors
warning: build failed, waiting for other jobs to finish...

@ShyDamn
Copy link

ShyDamn commented Mar 27, 2024

Инструкция:

  1. Открываешь jarvis-master/gui
  2. Возвращаешься на главную ветку jarvis-master
  3. npm install --save package.json, следующей командой npm install --save package-lock.json
  4. Устанавливаешь npm install -g tauri
  5. Устанавливаешь npm install -g @roxi/routify
  6. toutify добавляешь в PATH. Он находится по пути C:\Users\Твой_Пользователь\AppData\Roaming\npm\node_modules@roxi\routify
  7. Переходишь в ветку app
  8. Устанавливаешь cargo install --force cargo-make
  9. cargo make release
  10. ./target/release/jarvis-app
    И не забудь скачать себе Picovoice, vosk, node и установить rust
    Приятного пользования

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants