Crate Name | Description |
---|---|
huly-cef |
Core library for interacting with the Chromium Embedded Framework (CEF) |
huly-cef-helper |
macOS-specific helper app required for proper bundle packaging |
huly-cef-tools |
Utility crate providing tools and helpers for building huly-cef apps |
huly-cef-websockets |
WebSocket-based server for streaming and interacting with CEF browser views |
Follow these steps to build and run Huly CEF:
-
Download CEF Artifacts
First, download the necessary CEF artifacts from the following link:
CEF Artifacts. -
Set Up Environment Variables
Once you have the CEF artifacts, set theCEF_ARTIFACTS_DIR
environment variable to the path of the CEF Artifacts. You can do this with the following commands:export CEF_ARTIFACTS_DIR=/path/to/cef/libraries
-
Build Huly CEF
To build Huly CEF, use the following command:cargo run --bin huly-cef-build --release -- --profile release
-
Run Huly CEF
Linux:./target/release/huly-cef-websockets
Windows:
./target/release/huly-cef-websockets.exe
MacOS:
./target/release/huly-cef-websockets.app/Contents/MacOS/huly-cef-websockets
-
Build The Package
To build the package, use the following command:cd ./packages/cef-client npm install npm run build
-
Link The Package
To link the package, use the following command:npm link
-
Use The Package In Your Project
To use the package in your project, run the following command in the project's folder:npm link cef-client
-
Publish The Package To publish the package, use the following command:
npm publish