From 3f80ccbfc0dd2f3b4295e506e7ce5931b720e2ee Mon Sep 17 00:00:00 2001 From: notori <188390306+n0tori@users.noreply.github.com> Date: Thu, 13 Mar 2025 12:28:08 +0000 Subject: project files --- src/kindle/uninstall/appreg.uninstall.sql | 8 +++++++ src/kindle/uninstall/uninstall.sh | 37 +++++++++++++++++++++++++++++++ 2 files changed, 45 insertions(+) create mode 100644 src/kindle/uninstall/appreg.uninstall.sql create mode 100644 src/kindle/uninstall/uninstall.sh (limited to 'src/kindle/uninstall') diff --git a/src/kindle/uninstall/appreg.uninstall.sql b/src/kindle/uninstall/appreg.uninstall.sql new file mode 100644 index 0000000..b1d96cc --- /dev/null +++ b/src/kindle/uninstall/appreg.uninstall.sql @@ -0,0 +1,8 @@ +DELETE FROM "handlerIds" WHERE handlerId='uk.co.notori.gol'; +DELETE FROM "properties" WHERE handlerId='uk.co.notori.gol'; +DELETE FROM "associations" WHERE handlerId='uk.co.notori.gol'; + +DELETE FROM "mimetypes" WHERE ext='gol'; +DELETE FROM "extenstions" WHERE ext='gol'; +DELETE FROM "properties" WHERE value='GameOfLife'; +DELETE FROM "associations" WHERE contentId='GL:*.gol'; diff --git a/src/kindle/uninstall/uninstall.sh b/src/kindle/uninstall/uninstall.sh new file mode 100644 index 0000000..cdafdb8 --- /dev/null +++ b/src/kindle/uninstall/uninstall.sh @@ -0,0 +1,37 @@ +#!/bin/sh +# +# KUAL Booklet uninstaller +# +# $Id$ +# +## + +# Pull libOTAUtils for logging & progress handling +[ -f ./libotautils5 ] && source ./libotautils5 + + +otautils_update_progressbar + +logmsg "I" "uninstall" "" "uninstalling booklet" +rm -f "/opt/amazon/ebook/booklet/GameOfLife.jar" + +otautils_update_progressbar + +logmsg "I" "uninstall" "" "deregistering booklet" +sqlite3 "/var/local/appreg.db" < "appreg.uninstall.sql" + +otautils_update_progressbar + +logmsg "I" "uninstall" "" "removing application" +rm -f "/mnt/us/documents/GameOfLife.gol" + +otautils_update_progressbar + +logmsg "I" "uninstall" "" "cleaning up" +rm -f "appreg.uninstall.sql" + +logmsg "I" "uninstall" "" "done" + +otautils_update_progressbar + +return 0 -- cgit v1.2.3