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

dioxus-cli fails to install on windows 11 #1413

Closed
1 of 3 tasks
NicolasVIscool opened this issue Sep 1, 2023 · 6 comments · Fixed by #1415 or #1424
Closed
1 of 3 tasks

dioxus-cli fails to install on windows 11 #1413

NicolasVIscool opened this issue Sep 1, 2023 · 6 comments · Fixed by #1415 or #1424
Labels
bug Something isn't working cli Related to the dioxus-cli program dependencies Pull requests that update a dependency file

Comments

@NicolasVIscool
Copy link

Problem

We can't install dioxus-cli on windows 11.

Steps To Reproduce

run the command

cargo install dioxus-cli

results in

error[E0063]: missing field `desktop_template` in initializer of `tauri_bundler::DebianSettings`
   --> packages\cli\src\config.rs:381:9
    |
381 |         tauri_bundler::DebianSettings {
    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ missing `desktop_template`
error[E0063]: missing fields `custom_language_files` and `template` in initializer of `tauri_bundler::NsisSettings`
   --> packages\cli\src\config.rs:517:9
    |
517 |         tauri_bundler::NsisSettings {
    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^ missing `custom_language_files` and `template`

Expected behavior

Installation success

Environment:

  • Dioxus version: 0.4.0 or 0.4.2 (github current)
  • Rust version: 1.71
  • OS info: Windows 11

Workaround:

Installing with --locked works (thanks @!marc on discord):

cargo install dioxus-cli --locked

Questionnaire

  • I'm interested in fixing this myself but don't know where to start
  • I would like to fix and I have a solution
  • I don't have time to fix this right now, but maybe later
@ealmloff ealmloff added bug Something isn't working cli Related to the dioxus-cli program dependencies Pull requests that update a dependency file labels Sep 1, 2023
@fanyang89
Copy link
Contributor

@ealmloff
Copy link
Member

ealmloff commented Sep 1, 2023

Yet another fix for this: fanyang89@5b5ea20

We can merge both fixes. We need to pin the version because tauri doesn't follow semvar for tauri-bundle, but updating to the new version would be nice

@fanyang89
Copy link
Contributor

We can merge both fixes. We need to pin the version because tauri doesn't follow semvar for tauri-bundle, but updating to the new version would be nice

PR created #1416

@lebe-dev
Copy link

lebe-dev commented Sep 2, 2023

The same issue on the latest ArchLinux with rust 1.72.

@uxsoft
Copy link

uxsoft commented Sep 3, 2023

Same issue on macOS, installing with locked worked:

cargo install dioxus-cli --locked

@ealmloff
Copy link
Member

ealmloff commented Sep 4, 2023

Diouxs 0.4.1 has now been published which fixes cargo install dioxus-cli

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working cli Related to the dioxus-cli program dependencies Pull requests that update a dependency file
Projects
None yet
5 participants