Voice-to-text dictation app with local (Nvidia Parakeet/Whisper) and cloud models (BYOK). Privacy-first and available cross-platform.
JavaScript aianthropiccross-platformgeminigroqlinuxmacosnvidiaopen-sourceopenaiparakeetspeech-to-texttranscribewhisperwindows
fix: updated after remove script for linux
Gabriel Steind481d52ad1f7
diff --git a/electron-builder.json b/electron-builder.jsonindex f10407c8f..c1e28e1c6 100644--- a/electron-builder.json+++ b/electron-builder.json@@ -63,8 +63,10 @@"deb"],"icon": "src/assets/icon.png",- "category": "Utility",- "afterInstall": "resources/linux/after-install.sh"+ "category": "Utility"+ },+ "deb": {+ "afterRemove": "resources/linux/after-remove.sh"},"nsis": {"oneClick": false,diff --git a/resources/linux/after-install.sh b/resources/linux/after-install.shdeleted file mode 100755index 7aa2b623e..000000000--- a/resources/linux/after-install.sh+++ /dev/null@@ -1,16 +0,0 @@-#!/bin/bash-set -euo pipefail--CACHE_DIR="${HOME}/.cache/openwhispr"-MODELS_DIR="${CACHE_DIR}/models"--if [[ "${1-}" == "--remove" ]]; then- if [[ -d "${MODELS_DIR}" ]]; then- rm -rf "${MODELS_DIR}"- echo "Removed OpenWhispr cached models"- fi- # Attempt to remove parent cache directory if empty- if [[ -d "${CACHE_DIR}" ]]; then- rmdir "${CACHE_DIR}" 2>/dev/null || true- fi-fidiff --git a/resources/linux/after-remove.sh b/resources/linux/after-remove.shnew file mode 100755index 000000000..a7f361cad--- /dev/null+++ b/resources/linux/after-remove.sh@@ -0,0 +1,14 @@+#!/bin/bash+set -euo pipefail++CACHE_DIR="${HOME}/.cache/openwhispr"+MODELS_DIR="${CACHE_DIR}/models"++if [[ -d "${MODELS_DIR}" ]]; then+ rm -rf "${MODELS_DIR}"+ echo "Removed OpenWhispr cached models"+fi++if [[ -d "${CACHE_DIR}" ]]; then+ rmdir "${CACHE_DIR}" 2>/dev/null || true+fi