Skip to content

Commit cd088c4

Browse files
author
Wu Yu Wei
committed
Update flatpak manifest
1 parent 98a2ced commit cd088c4

File tree

5 files changed

+15
-16
lines changed

5 files changed

+15
-16
lines changed

CODE_OF_CONDUCT.md

+1-2
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,7 @@ representative at an online or offline event.
6060
## Enforcement
6161

6262
Instances of abusive, harassing, or otherwise unacceptable behavior may be
63-
reported to the community leaders responsible for enforcement at
64-
63+
reported to the community leaders responsible for enforcement.
6564
All complaints will be reviewed and investigated promptly and fairly.
6665

6766
All community leaders are obligated to respect the privacy and security of the

README.md

+7-7
Original file line numberDiff line numberDiff line change
@@ -16,21 +16,22 @@ Use CEF in Rust.
1616
- Install flatpak runtime & sdk:
1717

1818
```
19-
TODO
19+
flatpak install flathub dev.crabnebula.Platform
20+
flatpak install flathub dev.crabnebula.Sdk
2021
```
2122

2223
- Setup cargo project for flatpak. See [flatpak-builder-tools](https://github.com/flatpak/flatpak-builder-tools/blob/master/cargo/README.md) for more details. Here are files you will need to have at leaset:
2324
- flatpak-cargo-generator.py
24-
- flatpak manifest file (ie. app.tauri.demo)
25+
- flatpak manifest file (ie. app.example.demo.yml)
2526

2627
- Build the flatpak application and run:
2728

2829
```
2930
cargo b --example demo
30-
python3 ./flatpak-cargo-generator.py ./quickstart/Cargo.lock -o cargo-sources.json
31+
python3 ./flatpak-cargo-generator.py ./Cargo.lock -o cargo-sources.json
3132
touch run.sh
32-
flatpak-builder --user --install --force-clean target app.tauri.demo.yml
33-
flatpak run app.tauri.demo
33+
flatpak-builder --user --install --force-clean target app.example.demo.yml
34+
flatpak run app.example.demo
3435
```
3536

3637
## Contributing
@@ -39,11 +40,10 @@ Please see [CONTRIBUTING.md](CONTRIBUTING.md) for details.
3940

4041
## Roadmap
4142

42-
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.
43+
Cef-rs is looking for the best approach to use CEF. On Linux, this is achived by using 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.
4344

4445
### Planned
4546

46-
- Find out the best approach to use CEF in the target we support.
4747
- [ ] Add Linux ARM64 target
4848
- [ ] Add macOS ARM64 target
4949
- [ ] Add Windows x86_64 target

app.tauri.demo.yml app.example.demo.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
id: app.tauri.demo
2-
runtime: app.tauri.Platform
1+
id: app.example.demo
2+
runtime: dev.crabnebula.Platform
33
runtime-version: '22.08'
4-
sdk: app.tauri.Sdk
4+
sdk: dev.crabnebula.Sdk
55
sdk-extensions:
66
- org.freedesktop.Sdk.Extension.rust-stable
77
finish-args:

examples/demo.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
use cef::{
2-
app::App, args::Args, browser::BrowserSettings, client::Client, settings::Settings,
2+
App, args::Args, browser::BrowserSettings, client::Client, Settings,
33
string::CefString, window::WindowInfo,
44
};
55

@@ -17,10 +17,10 @@ fn main() {
1717
unsafe {
1818
let args = Args::new(std::env::args());
1919
let app = Application;
20-
dbg!(cef::app::execute_process(&args, Some(app)));
20+
dbg!(cef::execute_process(&args, Some(app)));
2121

2222
let settings = Settings::new();
23-
dbg!(cef::app::initialize(&args, settings, Some(app)));
23+
dbg!(cef::initialize(&args, settings, Some(app)));
2424

2525
let window_info = WindowInfo::new();
2626
let browser_settings = BrowserSettings::new();

sys/build.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ fn main() {
66
Ok(mut val) => {
77
// TODO better path formatting
88
val.push_str(
9-
"/.local/share/flatpak/runtime/app.tauri.Platform/x86_64/22.08/active/files/lib",
9+
"/.local/share/flatpak/runtime/dev.crabnebula.Platform/x86_64/22.08/active/files/lib",
1010
);
1111
val
1212
}

0 commit comments

Comments
 (0)