install.sh

#!/usr/bin/env bash
set -euo pipefail

ROOT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
PACKAGE_PATH="${ROOT_DIR}/dist/codexbar-plasma.plasmoid"

make -C "$ROOT_DIR" package
kpackagetool6 -t Plasma/Applet -u "$PACKAGE_PATH" || kpackagetool6 -t Plasma/Applet -i "$PACKAGE_PATH"
systemctl --user restart plasma-plasmashell.service