README.md 1.0 KB
Newer Older
R
Richard Wilkes 已提交
1
# cef
R
Richard Wilkes 已提交
2 3
Go bindings for the
[Chromium Embedded Framework (CEF)](https://bitbucket.org/chromiumembedded/cef).
R
Richard Wilkes 已提交
4

R
Richard Wilkes 已提交
5
## Initial setup
R
Richard Wilkes 已提交
6
Run `setup.sh` in this directory to pull the version of CEF these bindings
R
Richard Wilkes 已提交
7
were created for.
R
Richard Wilkes 已提交
8

R
Richard Wilkes 已提交
9 10 11 12 13 14 15 16
## Extra environment setup required for Windows
- Download and run the installer from http://www.msys2.org/
- In the mingw64 msys2 console, run the following:
  - `pacman -Syu`
  - `pacman -Su`
  - `pacman -S mingw64/mingw-w64-x86_64-gcc mingw64/mingw-w64-x86_64-go msys/git`

## Example application
R
Richard Wilkes 已提交
17 18
https://github.com/richardwilkes/webapp and
https://github.com/richardwilkes/webapp-example use these bindings to create
R
Richard Wilkes 已提交
19 20 21 22 23 24 25 26
an example desktop application.

## Updating the CEF version to be used
The CEF version can be updated in the `setup.sh` script file by changing the
`CEF_VERSION` variable. If a different version is pulled, the source files
should be generated again by running `go generate ./...` on a macOS machine.
Code generation might be possible on other platforms, but has not been tested
there.