Skip to content

russmatney/clove

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Clove

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:

updating

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/

Dev

Build:

cargo tauri dev

Test:

./src-tauri/target/debug/clove create-window -t mytitle --url http://localhost:3333 --label mylabel

‘Prod’

NO_STRIP=true cargo tauri build

NO_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 mylabel

install

Build prod and install it in ~/.cargo/bin:

cargo install --path src-tauri/.

Usage

clove create-window \
    --title some-window-title \
    --url http://localhost:3333 \
    --label some-unique-label

Eg at default clerk port:

clove create-window \
    --title clerk-notebook \
    --url http://localhost:8888 \
    --label clerk-notebook

With more args:

clove create-window \
    --transparent \
    --decorations \
    --focused \
    --title clerk-notebook \
    --url http://localhost:8888 \
    --label clerk-notebook

misc

nvidia error

There 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 argument

For now using an env var makes things work again:

WEBKIT_DISABLE_DMABUF_RENDERER=1 clove create-window ....

Some related threads:

linuxdeploy fail

add NO_STRIP=true (from: tauri-apps/tauri#8929 )

About

Wrapper for tauri accepting a url on the command line

Topics

Resources

Stars

Watchers

Forks