-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathjustfile
More file actions
43 lines (35 loc) · 1.83 KB
/
justfile
File metadata and controls
43 lines (35 loc) · 1.83 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
prefix := "/usr"
dev: schemas
RUST_LOG="debug,glycin=off,glycin_utils=off" cargo run
schemas:
mkdir -p ~/.local/share/glib-2.0/schemas
cp resources/io.m51.Gelly.gschema.xml ~/.local/share/glib-2.0/schemas/
glib-compile-schemas ~/.local/share/glib-2.0/schemas/
release:
cargo build --release
install:
install -Dm755 target/release/gelly {{prefix}}/bin/gelly
install -Dm644 resources/io.m51.Gelly.desktop {{prefix}}/share/applications/io.m51.Gelly.desktop
install -Dm644 resources/io.m51.Gelly.metainfo.xml {{prefix}}/share/metainfo/io.m51.Gelly.metainfo.xml
install -Dm644 resources/io.m51.Gelly.gschema.xml {{prefix}}/share/glib-2.0/schemas/io.m51.Gelly.gschema.xml
install -Dm644 resources/io.m51.Gelly.svg {{prefix}}/share/icons/hicolor/scalable/apps/io.m51.Gelly.svg
install -Dm644 resources/io.m51.Gelly-symbolic.svg {{prefix}}/share/icons/hicolor/symbolic/apps/io.m51.Gelly-symbolic.svg
glib-compile-schemas {{prefix}}/share/glib-2.0/schemas/
uninstall:
rm {{prefix}}/bin/gelly
rm {{prefix}}/share/applications/io.m51.Gelly.desktop
rm {{prefix}}/share/metainfo/io.m51.Gelly.metainfo.xml
rm {{prefix}}/share/glib-2.0/schemas/io.m51.Gelly.gschema.xml
rm {{prefix}}/share/icons/hicolor/scalable/apps/io.m51.Gelly.svg
rm {{prefix}}/share/icons/hicolor/symbolic/apps/io.m51.Gelly-symbolic.svg
glib-compile-schemas {{prefix}}/share/glib-2.0/schemas/
dev-remote host: schemas
#!/usr/bin/env bash
set -euo pipefail
echo "Building locally..."
cargo build
echo "Launching on remote display..."
DEV_HOST=$(hostname -f)
BINARY_PATH="{{justfile_directory()}}/target/debug/gelly"
WAYLAND_DISPLAY_VAR="${WAYLAND_DISPLAY:-wayland-0}"
ssh {{host}} "WAYLAND_DISPLAY=$WAYLAND_DISPLAY_VAR RUST_LOG='debug,glycin=off,glycin_utils=off' waypipe -n ssh $DEV_HOST $BINARY_PATH"