more rpi updates
This commit is contained in:
parent
7a98850a57
commit
e6046dafee
|
|
@ -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..."
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user