feat: add just commands to build and install applet only

This commit is contained in:
Jonatan Pettersson 2026-01-23 14:31:28 +01:00
parent 34a33df5fc
commit 8c3e26d0d0

View file

@ -48,6 +48,10 @@ build-debug *args:
# Compiles with release profile
build-release *args: (build-debug '--release' args)
# Compiles applet with release profile
build-release-applet *args:
cargo build --package {{applet-name}} --release {{args}}
# Compiles release profile with vendored dependencies
build-vendored *args: vendor-extract (build-release '--frozen --offline' args)
@ -95,6 +99,10 @@ install:
install -Dm0644 "{{icons-src}}/$size/apps/{{APPID}}.svg" "{{icons-dst}}/$size/apps/{{APPID}}.svg"; \
done
# Installs applet files
install-applet:
install -Dm0755 {{applet-src}} {{applet-dst}}
# Uninstalls installed files
uninstall:
rm -f {{bin-dst}} {{applet-dst}}