diff --git a/justfile b/justfile index bf32e0f..23e30d5 100644 --- a/justfile +++ b/justfile @@ -39,8 +39,13 @@ build: build-release: moon build --target native --release --warn-list -a compositor/bin -# Run the compositor in a window on your current Wayland session (close the window or Ctrl-C to stop). Connect clients via `just client`. -run: build modules +# Run the compositor, built as a wasm component, in a window on your current Wayland session (close the window or Ctrl-C to stop). Connect clients via `just client`. The panel is empty until panel modules run in the component; `just run-native` has them. +run: compositor-wasm host-wasm + rm -f {{socket}} + host-wasm/target/release/moon-plasma-host build/components/compositor.wasm --socket {{socket}} --theme {{theme}} --window + +# Run the native compositor (tcc debug build, with the wasm panel modules) in a window on your current Wayland session. +run-native: build modules rm -f {{socket}} {{exe}} --window --socket {{socket}} --theme {{theme}} @@ -125,8 +130,3 @@ compositor-wasm: host-wasm: cd host-wasm && cargo build --release -# Run the wasm compositor in a window on your current Wayland session. Connect clients via `just client`. -run-wasm: compositor-wasm host-wasm - rm -f {{socket}} - host-wasm/target/release/moon-plasma-host build/components/compositor.wasm --socket {{socket}} --theme {{theme}} --window -