Successor to russmatney/clover, but dropping Electron in favor of Tauri.
Builds a binary that can be passed a window title and URL, to host a locally running web app outside of your usual browser tabs.
I use this in russmatney/clawe to run a clojurescript topbar and dashboard on linux and OSX.
More detail on my blog:
things like
rustup update yarn global upgrade @tauri-apps/cli@latest tauri migrate cargo update # in src-tauri/ tauri dev ./src-tauri/target/debug/clove create-window -t mytitle --url http://localhost:3333 --label mylabel
tauri dev with commands fails lately b/c `dev` adds extra command line args
that tauri-plugin-cli doesn’t support :eyeroll:
tauri dev on mac currently fails completely, dep resolution fail for hyper-tls?
migration from tauri 1 guide: https://v2.tauri.app/start/migrate/from-tauri-1/
Build:
cargo tauri devTest:
./src-tauri/target/debug/clove create-window -t mytitle --url http://localhost:3333 --label mylabelNO_STRIP=true cargo tauri buildNO_STRIP=true from tauri-apps/tauri#8929
Test the prod build:
./src-tauri/target/release/clove create-window -t mytitle --url http://localhost:3333 --label mylabelBuild prod and install it in ~/.cargo/bin:
cargo install --path src-tauri/.clove create-window \
--title some-window-title \
--url http://localhost:3333 \
--label some-unique-labelEg at default clerk port:
clove create-window \
--title clerk-notebook \
--url http://localhost:8888 \
--label clerk-notebookWith more args:
clove create-window \
--transparent \
--decorations \
--focused \
--title clerk-notebook \
--url http://localhost:8888 \
--label clerk-notebookThere is a crash when running tauri against the latest nvidia renderers:
src/nv_gbm.c:99: GBM-DRV error (nv_gbm_bo_create): DRM_IOCTL_NVIDIA_GEM_ALLOC_NVKMS_MEMORY failed (ret=-1)
Failed to create GBM buffer of size 2279x999: Invalid argumentFor now using an env var makes things work again:
WEBKIT_DISABLE_DMABUF_RENDERER=1 clove create-window ....Some related threads:
- tauri-apps/tauri#7910
- https://www.reddit.com/r/rust/comments/16tzu8w/tauri_issue/
- https://www.reddit.com/r/tauri/comments/16tzsi8/tauri_desktop_app_not_rendering_but_web_does/
add NO_STRIP=true (from: tauri-apps/tauri#8929 )