From 01b73b7a93920535d4d6079bf8a2b157602e29b1 Mon Sep 17 00:00:00 2001 From: oklopfer <104327997+oklopfer@users.noreply.github.com> Date: Wed, 20 Dec 2023 23:53:14 -0500 Subject: [PATCH] Update floorp-bin.pacscript --- packages/floorp-bin/floorp-bin.pacscript | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/packages/floorp-bin/floorp-bin.pacscript b/packages/floorp-bin/floorp-bin.pacscript index 8c5314ec83..fe89ab5f1a 100644 --- a/packages/floorp-bin/floorp-bin.pacscript +++ b/packages/floorp-bin/floorp-bin.pacscript @@ -14,10 +14,12 @@ homepage='https://floorp.app/' pkgdesc="Firefox-based Browser build for keeping the Open, Private and Sustainable Web alive" maintainer="Oren Klopfer " arch=('amd64' 'arm64') -if [[ ${CARCH} == "arm64" ]]; then +if [[ ${CARCH} == "arm64" && ! -f "${METADIR}/${name}-override" ]]; then fancy_message warn "Floorp is not running properly on ${BBlue}arm64${NC}. It should only be installed for development." if ask "[${BYellow}*${NC}] ${BOLD}WARNING${NC}: Cancel installation?" Y; then exit + else + sudo touch "${METADIR}/${name}-override" fi fi @@ -61,4 +63,7 @@ post_install() { post_remove() { sudo rm -f "/usr/bin/floorp" "/usr/bin/floorp-bin" + if [[ -f "${METADIR}/${name}-override" ]]; then + sudo rm -f "${METADIR}/${name}-override" + fi }