Building RustDesk to produce executables like the official releases doesn't work #459

Closed
opened 2026-02-20 23:02:18 -05:00 by deekerman · 1 comment
Owner

Originally created by @davidramiro on GitHub (Jun 2, 2022).

First of all, thanks a lot for this project.

Describe the bug you encountered:


Building as per tutorial won't produce release files as expected. (Yes, I have sciter.dll file present in build directory)

Building with cargo run runs the app fine. Building with cargo run --release builds an executable file, that will not work on its own. It will show a blank screen. I have found out, that you can fix this by manually putting ui folder into build folder.

I have looked into build.py and the docs on here. I tried the following:

Created resources folder, put in src/ui and sciter.dll. Used cargo build --features with_rc. Executable works, but it shows a console window in addition.

How to build a single executable that will just show the app, no console, got everything linked? I searched through all the issues, but no definitive answer.

Are there any build commands I am missing?


How did you install RustDesk?

Built from source. Tried latest master and 1.1.9 tag.


Environment

Same behaviour on Arch Linux and Windows 10. I have yet to test mac OS, will do later.

Originally created by @davidramiro on GitHub (Jun 2, 2022). <!-- Hey there, thank you for creating an issue! --> First of all, thanks a lot for this project. **Describe the bug you encountered:** --- Building as per tutorial won't produce release files as expected. (Yes, I have sciter.dll file present in build directory) Building with `cargo run` runs the app fine. Building with `cargo run --release` builds an executable file, that will not work on its own. It will show a blank screen. I have found out, that you can fix this by manually putting `ui` folder into build folder. I have looked into `build.py` and the docs [on here](https://rustdesk.com/docs/en/dev/build/windows/). I tried the following: Created `resources` folder, put in `src/ui` and `sciter.dll`. Used `cargo build --features with_rc`. Executable works, but it shows a console window in addition. How to build a single executable that will just show the app, no console, got everything linked? I searched through all the issues, but no definitive answer. Are there any build commands I am missing? --- **How did you install `RustDesk`?** Built from source. Tried latest `master` and `1.1.9` tag. --- **Environment** Same behaviour on Arch Linux and Windows 10. I have yet to test mac OS, will do later.
deekerman 2026-02-20 23:02:18 -05:00
  • closed this issue
  • added the
    bug
    label
Author
Owner
@rustdesk commented on GitHub (Jun 2, 2022): https://github.com/rustdesk/rustdesk/issues/501#issuecomment-1125596473
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/rustdesk-rustdesk#459
No description provided.