From e6046dafee44ccdd6f280c674ed6884986560cb9 Mon Sep 17 00:00:00 2001 From: Chris Wanstrath <2+defunkt@users.noreply.github.com> Date: Wed, 4 Feb 2026 18:47:11 -0800 Subject: [PATCH] more rpi updates --- scripts/install.sh | 27 +++++++++++++++++++++++---- 1 file changed, 23 insertions(+), 4 deletions(-) diff --git a/scripts/install.sh b/scripts/install.sh index 0cc663f..547edc3 100755 --- a/scripts/install.sh +++ b/scripts/install.sh @@ -47,6 +47,23 @@ quiet /usr/sbin/getcap "$BUN_REAL" || true echo ">> Creating apps directory" mkdir -p ~/apps +echo ">> Installing bundled apps" +BUNDLED_APPS="clock code cron env stats versions" +for app in $BUNDLED_APPS; do + if [ -d "apps/$app" ]; then + echo " Installing $app..." + # Copy app to ~/apps + cp -r "apps/$app" ~/apps/ + # Find the version directory and create current symlink + version_dir=$(ls -1 ~/apps/$app | grep -E '^[0-9]{8}-[0-9]{6}$' | sort -r | head -1) + if [ -n "$version_dir" ]; then + ln -sfn "$version_dir" ~/apps/$app/current + # Install dependencies + (cd ~/apps/$app/current && bun install --frozen-lockfile) > /dev/null 2>&1 + fi + fi +done + echo ">> Installing dependencies" bun install @@ -65,10 +82,12 @@ quiet sudo systemctl enable "$SERVICE_NAME" echo ">> Starting (or restarting) $SERVICE_NAME" quiet sudo systemctl restart "$SERVICE_NAME" -echo ">> Enabling kiosk mode" -quiet mkdir -p ~/.config/labwc -cat > ~/.config/labwc/autostart <<'EOF' -chromium-browser --noerrdialogs --disable-infobars --kiosk http://localhost +echo ">> Enabling kiosk mode (Wayfire)" +mkdir -p ~/.config +cat >> ~/.config/wayfire.ini <<'EOF' + +[autostart] +chromium = chromium-browser --noerrdialogs --disable-infobars --kiosk http://localhost EOF echo ">> Done! Rebooting in 5 seconds..."