mirror of
https://github.com/aphrody-labs/cef-rs.git
synced 2026-10-13 21:06:46 +00:00
clean docs
This commit is contained in:
1 parent
8ec5632cd0
commit
01efcd1f7a
2 files changed
+5
-44
No files matched your search
@@ -26,6 +26,11 @@ Hi! We, the maintainers, are really excited that you are interested in contribut
|
||||
|
||||
### Quick start
|
||||
|
||||
#### Install CMake and Ninja-Build
|
||||
|
||||
> CEF release is distributed with the prebuilt dynamic binaries(libcef) and cef_dll_wrapper source code, We must compile
|
||||
> cef_dll_wrapper into static library then link with it(See[Build Steps](https://bitbucket.org/chromiumembedded/cef/wiki/Tutorial.md))
|
||||
|
||||
#### Download CEF from [cef-builds](https://cef-builds.spotifycdn.com/index.html)
|
||||
|
||||
```sh
|
||||
|
||||
@@ -14,50 +14,6 @@
|
||||
| x86_64 | ✅ | ✅ | ✅ |
|
||||
| ARM64 | ✅ | ✅ | ✅ |
|
||||
|
||||
## Usage
|
||||
|
||||
### Linux
|
||||
|
||||
#### Manual Install
|
||||
|
||||
- Download Linux-64bit prebuilt with `sys/upgrade.rs`:
|
||||
|
||||
```sh
|
||||
cd sys
|
||||
|
||||
# make sure you have `cmake` and 'ninja-build' installed
|
||||
./upgrade.rs x86_64-unknown-linux-gnu --download
|
||||
```
|
||||
|
||||
- Build and run the application with `LD_LIBRARY_PATH` (or you can also add rpath to your cargo config or build script):
|
||||
|
||||
```sh
|
||||
LD_LIBRARY_PATH=sys/cef/archive_linux_x86_64 cargo r --example demo
|
||||
```
|
||||
|
||||
#### Flatpak
|
||||
|
||||
- Install flatpak runtime & sdk:
|
||||
|
||||
```
|
||||
flatpak install flathub dev.crabnebula.Platform
|
||||
flatpak install flathub dev.crabnebula.Sdk
|
||||
```
|
||||
|
||||
- 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:
|
||||
- flatpak-cargo-generator.py
|
||||
- flatpak manifest file (ie. app.example.demo.yml)
|
||||
|
||||
- Build the flatpak application and run:
|
||||
|
||||
```
|
||||
cargo b --example demo
|
||||
python3 ./flatpak-cargo-generator.py ./Cargo.lock -o cargo-sources.json
|
||||
touch run.sh
|
||||
flatpak-builder --user --install --force-clean target app.example.demo.yml
|
||||
flatpak run app.example.demo
|
||||
```
|
||||
|
||||
## Contributing
|
||||
|
||||
Please see [CONTRIBUTING.md](CONTRIBUTING.md) for details.
|
||||
|
||||
Reference in new issue
Block a user