update macos example build&run doc

This commit is contained in:
csmoe committed 2025-01-14 13:38:27 +08:00
1 parent 1b7adc3515
commit 9624f8c10c
2 files changed
+21 -22

No files matched your search

+20 -21
View File
@@ -6,8 +6,8 @@ Use CEF in Rust.
| Target | Linux | macOS | Windows |
| ------ | ----- | ----- | ------- |
| x86_64 | ✅ | ❎ | ❎ |
| ARM64 | ✅ | ❎ | ❎ |
| x86_64 | ✅ | ✅ | ✅ |
| ARM64 | ✅ | ✅ | ✅ |
## Usage
@@ -53,26 +53,25 @@ flatpak-builder --user --install --force-clean target app.example.demo.yml
flatpak run app.example.demo
```
### macOS
- Download cef prebuilts with `update-bindings`, it should print out the extracted `CEF_PATH` on success.
```
cargo run -p update-bindings --bindgen --download
```
- Build and run the cefsimple application
```
export CEF_PATH=<path>
./cef/examples/cefsimple/bundle_script.rs
open target/debug/examples/cefsimple.app
```
## Contributing
Please see [CONTRIBUTING.md](CONTRIBUTING.md) for details.
## Roadmap
Cef-rs is looking for the best approach to use CEF. On Linux, this is achived by using same local share directory or same flatpak runtime.
So every application can share the same library. We are looking for the similar methods on macOS and Windows.
Welcome to open feature requests if the feature you look for isn't listed below.
But please understand that some requests might result into not planned.
### Planned
- [x] Add Linux ARM64 target
- [ ] Add macOS ARM64 target
- [ ] Add Windows x86_64 target
### Not Planned
- Other package formats on Linux.
- Add all possible ergonomic interfaces (ie. builder types for attributes and settings.)
- Provide tools to bundle and distribute application.
+1 -1
View File
@@ -140,7 +140,7 @@ fn extract_and_organize(
copy_directory(&archive_dir.join("include"), &cef_path.join("include"));
println!("cef: extracted into {:?}", cef_path);
println!("cef: extracted into CEF_PATH={:?}", cef_path);
archive_dir
}