介绍(for None chinese see below)
基于 cef 2623bin包下载 混合go 的桌面H5应用环境
- 内置websocket 支持控制窗口(边框全屏等)
- 内置http服务器支持本地页面服务
- 内置websocket 支持本地数据库操作(sqlit3)
- ...
- mingw32 或者mingw64-32
- go 1.10 32位(支持xp)
- 依赖的go包这里
- cmake
- llvm+clang(可选)
- 下载cef包放到cef_lib下
- go get 依赖的go包
- 首先编译 target goserver (也可手动go编译
go build -o goserver.a --buildmode=c-archive .
) - 然后cmake 编译 target cef
- 窗口控制 websocket连接 ws://127.0.0.1:65530/win ...待完善
this is a project build top on cef3
- contains c++ app (from cef3 offical example)
- contains embed go websocket server(expose window action to js)
- with MP3,MP4[H.264] supported(just for test)
Being working on some desktop solution need on winXP ;
Test use sumorf/cef is fine,but it use old version of cef3,and when trying to upgrad to cef3.2623 aways have something go wrong (took days).(PS: the websocket server can be use with it).
Finally I try just make a C++ application with go server lib , so the repo came out!
already test on windows 7 x64 ,And it may only support windows
- get mingw64 for 32bit
- get cmake 3.12+
- [optional] get clang(llvm)
- get go 1.8+ for 32bit
- get cef3 binary form binary
- build go lib via
./goserver/build.bat
- build app via cmake
- lxn/win for easy winapi control
- gorilla/websocket for websocket process
- mattn/go-sqlite3 for database process
go install --tags "sqlite_stat4 sqlite_foreign_keys sqlite_vacuum_incr sqlite_introspect sqlite_json sqlite_userauth" github.com/mattn/go-sqlite3
now is welcome to commit