untested macos

This commit is contained in:
nahuhh 2024-10-09 20:39:41 +00:00
parent 2eb3465704
commit 40fecdc214
2 changed files with 14 additions and 4 deletions

View file

@ -15,6 +15,10 @@ $SWAP_DATADIR/venv/bin/pip install .
cd $SWAP_DATADIR
git clone https://github.com/basicswap/basicswap
cd $SWAP_DATADIR/basicswap
## Macos
if [[ $MACOS ]]; then
$SWAP_DATADIR/venv/bin/pip install certifi
fi
## Install basicswap
$SWAP_DATADIR/venv/bin/pip install wheel
$SWAP_DATADIR/venv/bin/pip install .

View file

@ -63,9 +63,16 @@ detect_os_arch() {
UPDATE="sudo pacman -Syu"
DEPENDENCY="python-pipenv gnupg pkgconf base-devel"
$green"\nDetected Arch Linux\n";$nocolor
elif type -P brew > /dev/null; then
# MacOS
INSTALL="brew install"
elif [[ $(uname -s) = "Darwin" ]]; then
# MacOS
export MACOS=1
if type -P brew > /dev/null; then
$green"Homebrew is installed\n";$nc
INSTALL="brew install"
else
$green"Installing Homebrew\n";$nc
INSTALL="curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh | /bin/bash && brew install"
fi
DEPENDENCY="python gnupg pkg-config"
$green"\nDetected MacOS\n";$nocolor
else
@ -74,7 +81,6 @@ detect_os_arch() {
fi
}
detect_os_arch
## Update & Install dependencies