ssh-workbench/scripts/deployDuero.sh
jima bda8967ab1 Key import validation, 20 themes, 10 fonts, settings redesign, cursor speed/blink, terminal type
Key Import:
- SSHKeyLoader validates imported keys, extracts real pubkey/fingerprint
- ZIP file support with password handling (zip4j)
- Import chooser dialog: ZIP or single file
- Results dialog: valid/encrypted/invalid sections

Theme & Font:
- 20 color themes (10 new: Ayu Dark, Catppuccin Mocha, Everforest Dark, etc.)
- 10 bundled monospace fonts (JetBrains Mono, Fira Mono, Hack, etc.)
- Combined ThemePickerSheet: color scheme combo, font combo, font size slider
- Live preview with scrollable terminal output, adapts to landscape
- Typeface support in TerminalRenderer/TerminalSurfaceView

Settings:
- Material 3 grouped card layout (7 sections)
- Cursor speed: Slow/Normal/Fast/Rapid with key repeat acceleration
- Cursor blink: 530ms toggle, 15s idle auto-stop
- Keep screen on wired to FLAG_KEEP_SCREEN_ON
- Removed Show session tab bar toggle (always visible)
- Font size stepper replaced slider in settings

Terminal:
- Per-connection terminal type (TERM env var) in Edit Connection
- DB migration v1→v2 for termType column
- configChanges prevents activity recreation on rotation

Fixes:
- Vault import hosted in-place (no popBackStack)
- Clickable radio/checkbox/switch rows (text tappable)
- Password rules shown above field in vault export
- Deploy script cleans all stale APKs
- Telnet uses per-connection termType

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-06 02:01:06 +02:00

28 lines
689 B
Bash
Executable file

#!/bin/bash
# Deploy all built APKs to duero:/mnt/master/
APK_DIR="$(cd "$(dirname "$0")/.." && pwd)/app/build/deploy"
if [ ! -d "$APK_DIR" ]; then
echo "No deploy directory found: $APK_DIR"
exit 1
fi
# Clean all previous APKs on duero
ssh duero "rm -f /mnt/master/ssh-workbench*.apk" 2>/dev/null
count=0
echo "Deploying APKs to duero:/mnt/master/"
for apk in "$APK_DIR"/*.apk; do
[ -f "$apk" ] || continue
fname="$(basename "$apk")"
echo " $fname"
scp "$apk" duero:/mnt/master/ || { echo "FAILED: $apk"; exit 1; }
count=$((count + 1))
done
if [ "$count" -eq 0 ]; then
echo "No APK files found in $APK_DIR"
exit 1
fi
echo "Done. ($count file(s))"