#!/bin/sh # Kiku uninstaller. # # curl -fsSL kiku.sh/uninstall | sh # # Quits Kiku and removes the app and its models. Your notes, transcripts and # the voices Kiku knows stay in ~/Library/Application Support/Kiku, unless: # KIKU_PURGE=1 removes them too, with Kiku's settings set -eu support="$HOME/Library/Application Support/Kiku" say() { printf '%s\n' "$*"; } if pgrep -xq Kiku; then osascript -e 'tell application id "fm.kiku.mac" to quit' >/dev/null 2>&1 || true i=0 while pgrep -xq Kiku && [ $i -lt 30 ]; do sleep 1; i=$((i + 1)); done if pgrep -xq Kiku; then say "kiku: Kiku is still busy (writing a call's notes?). Try again in a minute." >&2 exit 1 fi fi for app in /Applications/Kiku.app "$HOME/Applications/Kiku.app"; do [ -d "$app" ] && rm -rf "$app" && say "Removed $app" done # The models: several GB. Koe's copy of the speech model is Koe's, left alone. [ -d "$support/Models" ] && rm -rf "$support/Models" && say "Removed Kiku's models" if [ "${KIKU_PURGE:-}" = 1 ]; then rm -rf "$support" defaults delete fm.kiku.mac >/dev/null 2>&1 || true say "Removed your notes, Kiku's voices and settings" elif [ -d "$support" ]; then say "Your notes are still in $support" say "To remove them too: curl -fsSL kiku.sh/uninstall | KIKU_PURGE=1 sh" fi say "Kiku is uninstalled."