Update README.md

This commit is contained in:
CW3MH6 2022-11-03 13:34:27 -04:00 committed by GitHub
parent 2dcc66040e
commit 86854b0715
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -37,8 +37,8 @@ If you want a single portable executable file, you can either statically link Sc
1. Copy sciter.dll to your project root directory (where Cargo.toml resides) 1. Copy sciter.dll to your project root directory (where Cargo.toml resides)
2. Add the following lines into ```fn main()``` in src/main.rs (around line 23 or so) 2. Add the following lines into ```fn main()``` in src/main.rs (around line 23 or so)
``` ```
let bytes = include_bytes!("..\\sciter.dll"); let bytes = std::include_bytes!("..\\sciter.dll");
fs::write("sciter.dll", bytes.as_slice()); std::fs::write("sciter.dll", bytes.as_slice());
``` ```
Note: Do not remove the "..\\" as main.rs resides in */rustdesk/src*, and will not be able to find the file otherwise. Alternatively you can put ```sciter.dll``` in */rustdesk/src* Note: Do not remove the "..\\" as main.rs resides in */rustdesk/src*, and will not be able to find the file otherwise. Alternatively you can put ```sciter.dll``` in */rustdesk/src*