Skip to content

Commit

Permalink
Update floorp-bin.pacscript
Browse files Browse the repository at this point in the history
  • Loading branch information
oklopfer authored Dec 21, 2023
1 parent f247698 commit 01b73b7
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion packages/floorp-bin/floorp-bin.pacscript
Original file line number Diff line number Diff line change
Expand Up @@ -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 <[email protected]>"
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

Expand Down Expand Up @@ -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
}

0 comments on commit 01b73b7

Please sign in to comment.