SpiralP / classicube-cef-plugin

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

CEF (Chromium Embedded Framework) in ClassiCube

A ClassiCube plugin that allows placing web browser screens in-game!

image

You probably want the loader plugin that installs and updates this plugin instead of compiling it yourself!

Prerequisites

Setup

  • Clone this repo

Build (Windows)

  • Run cargo build --release
    • This will create:
      • ./target/release/classicube_cef_plugin.dll
      • ./target/release/build/classicube-cef-plugin-*/out/cef.exe
        • There will be 2 folders named classicube-cef-plugin-*, look in both to find out/cef.exe

Install (Windows)

In a directory with the ClassiCube executable:

  • Copy:
    • All files in ./cef_binary/Release/ and ./cef_binary/Resources/ to ./ (same folder as ClassiCube.exe)
    • The cef.exe file to ./cef/cef.exe
  • Copy our plugin classicube_cef_plugin.dll to ./plugins/classicube_cef_plugin.dll

Build (Linux)

  • Run cargo build --release
    • This will create:
      • ./target/release/libclassicube_cef_plugin.so
      • ./target/release/build/classicube-cef-plugin-*/out/cef
        • There will be 2 folders named classicube-cef-plugin-*, look in both to find out/cef

Install (Linux)

In a directory with the ClassiCube executable:

  • Copy:
    • All files in ./cef_binary/Release/* and ./cef_binary/Resources/* to ./cef/cef_binary/
    • The cef file to ./cef/cef
  • Copy our plugin libclassicube_cef_plugin.so to ./plugins/libclassicube_cef_plugin.so

Build and Install With (Nix)

In a directory with the ClassiCube executable:

  • nix build github:SpiralP/classicube-cef-plugin
  • cp -va result/* . && chmod -cR u+w cef plugins
  • if using on another linux os: patchelf --set-interpreter /lib64/ld-linux-x86-64.so.2 ./cef/cef

About


Languages

Language:Rust 75.7%Language:C++ 13.2%Language:HTML 5.6%Language:CMake 3.5%Language:Nix 1.6%Language:Dockerfile 0.3%