From 264bac0aa9889475c04aa3b31ace95af0ece9487 Mon Sep 17 00:00:00 2001 From: Botspot Date: Mon, 30 Aug 2021 12:18:26 -0500 Subject: [PATCH] Min browser: use pkg-install --- apps/Min Browser/install-32 | 9 ++++++--- apps/Min Browser/install-64 | 9 ++++++--- apps/Min Browser/uninstall | 2 +- 3 files changed, 13 insertions(+), 7 deletions(-) diff --git a/apps/Min Browser/install-32 b/apps/Min Browser/install-32 index 58364ac..fa3f2d2 100755 --- a/apps/Min Browser/install-32 +++ b/apps/Min Browser/install-32 @@ -8,6 +8,9 @@ function error { } version='1.21.0' -wget https://github.com/chunky-milk/minbrowser-arm-builds/releases/download/${version}/min_${version}_armhf.deb || error "Failed to download Min deb file!" -sudo apt install -yf ./min_${version}_armhf.deb || error "Failed to install min deb file!" -rm -f ./min_${version}_armhf.deb +rm -f ~/min.deb +wget -O ~/min.deb https://github.com/chunky-milk/minbrowser-arm-builds/releases/download/${version}/min_${version}_armhf.deb || error "Failed to download Min deb file!" + +"${DIRECTORY}/pkg-install" "$HOME/min.deb" "$(dirname "$0")" || error "Failed to install min deb file!" +rm -f version='1.21.0' +rm -f ~/min.deb diff --git a/apps/Min Browser/install-64 b/apps/Min Browser/install-64 index 4691c39..1e11af5 100755 --- a/apps/Min Browser/install-64 +++ b/apps/Min Browser/install-64 @@ -8,6 +8,9 @@ function error { } version='1.21.0' -wget https://github.com/chunky-milk/minbrowser-arm-builds/releases/download/${version}/min_${version}_arm64.deb || error "Failed to download Min deb file!" -sudo apt install -yf ./min_${version}_arm64.deb || error "Failed to install min deb file!" -rm -f ./min_${version}_arm64.deb +rm -f ~/min.deb +wget -O ~/min.deb https://github.com/chunky-milk/minbrowser-arm-builds/releases/download/${version}/min_${version}_arm64.deb || error "Failed to download Min deb file!" + +"${DIRECTORY}/pkg-install" "$HOME/min.deb" "$(dirname "$0")" || error "Failed to install min deb file!" +rm -f version='1.21.0' +rm -f ~/min.deb diff --git a/apps/Min Browser/uninstall b/apps/Min Browser/uninstall index 4eaf3f3..494d749 100755 --- a/apps/Min Browser/uninstall +++ b/apps/Min Browser/uninstall @@ -7,4 +7,4 @@ function error { exit 1 } -sudo apt purge min -y || error "failed to remove min package from system!" +"${DIRECTORY}/purge-installed" "$(dirname "$0")" || error "failed to remove min package from system!"