Files
bubble/scripts/install-desktop.sh
T
travandClaude Opus 5 a2b8f764db voip.ms Messages: Signal-style desktop SMS client
Electron + React app that imports the full voip.ms SMS history into a
local SQLite/FTS5 database, polls for new messages, sends SMS, resolves
names/photos from GNOME EDS address books, and supports global and
per-chat search with jump-to-message.

Data lives in ~/Documents/voipms-desktop-data (covered by Deja Dup) with
daily consistent snapshots.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-17 21:25:12 -07:00

29 lines
899 B
Bash
Executable File

#!/usr/bin/env bash
# Install the built AppImage + a GNOME launcher for the current user.
# Usage: npm run dist && ./scripts/install-desktop.sh
set -euo pipefail
cd "$(dirname "$0")/.."
appimage=$(ls -t dist/voipms-desktop-*.AppImage | head -1)
bin="$HOME/.local/bin/voipms-desktop.AppImage"
icon="$HOME/.local/share/icons/hicolor/512x512/apps/voipms-desktop.png"
desktop="$HOME/.local/share/applications/voipms-desktop.desktop"
install -Dm755 "$appimage" "$bin"
install -Dm644 resources/icon.png "$icon"
mkdir -p "$(dirname "$desktop")"
cat > "$desktop" <<DESKTOP
[Desktop Entry]
Type=Application
Name=voip.ms Messages
Comment=Text messages via voip.ms
Exec=$bin %U
Icon=voipms-desktop
Terminal=false
Categories=Network;InstantMessaging;
StartupWMClass=voip.ms Messages
DESKTOP
update-desktop-database "$(dirname "$desktop")" 2>/dev/null || true
echo "Installed: $bin"
echo "Launcher: $desktop"