#!/bin/sh # Installs K65 Studio for the current user (app) and the udev rule (system, needs sudo). set -eu SRC="$(cd "$(dirname "$0")" && pwd)" PREFIX="${PREFIX:-$HOME/.local}" APPDIR="$PREFIX/share/k65studio" python3 -c "import PySide6" 2>/dev/null || { echo "PySide6 fehlt: sudo pacman -S pyside6"; exit 1; } mkdir -p "$APPDIR" "$PREFIX/bin" "$PREFIX/share/applications" "$PREFIX/share/icons/hicolor/scalable/apps" rm -rf "$APPDIR/k65studio" cp -r "$SRC/k65studio" "$APPDIR/" find "$APPDIR" -name __pycache__ -prune -exec rm -rf {} + cat > "$PREFIX/bin/k65studio" <