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

dx bundle maybe bundle the wrong desktop binary file #3573

Open
liigo opened this issue Jan 15, 2025 · 0 comments
Open

dx bundle maybe bundle the wrong desktop binary file #3573

liigo opened this issue Jan 15, 2025 · 0 comments
Labels
bug Something isn't working cli Related to the dioxus-cli program

Comments

@liigo
Copy link
Contributor

liigo commented Jan 15, 2025

Problem

For a fullstack app, when bundling to desktop, dx build two binary files in parallel:

  • the server binary (--feature server)
  • the desktop binary (--feature desktop)

Both of them are output to the same directory with the same file name, and yes, one of them will be overwriten by another. So the finally bundled file maybe is the server binary instead of desktop binary.

Update: I'm using CARGO_TARGET_DIR.

Steps To Reproduce

Steps to reproduce the behavior:

  • follows the HotDog tutorial, enable fullstack feature and add server functions
  • run dx bundle --platform desktop (also follows the tutorial)

Expected behavior

the desktop (GUI) binary is always bundled, and the server binary should be bundled too.

Screenshots

n/a

Environment:

  • Dioxus version: 0.6.1
  • Rust version: 1.83.0
  • OS info: Windows 10, 22H2, 19045
  • App platform: fullstack and desktop

Questionnaire

@ealmloff ealmloff added bug Something isn't working cli Related to the dioxus-cli program labels Jan 15, 2025
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
Projects
None yet
Development

No branches or pull requests

2 participants