This is a very small demonstrator of
- Using webview library from Scala Native
- Bundling a Scala.js frontend as part of a SN binary
- Running Scala.js frontend inside of a desktop application
- soon invoking a function on the backend
Similar to how different the webview setup instructions are across platforms, same needs to be done to the SN compilation/linking.
It's not by any means complicated, but for a demonstrator app it's too much effort to test it on all 3 platform.
If you have
- Build webview static library:
git submodule update --init
cd webview
clang++ webview.cc -std=c++17 -framework WebKit -c
ar rc webview.a webview.o
- Run the app:
sbt native/run
That's it.