mirror of
https://github.com/nahuhh/basicswap-bash.git
synced 2025-01-18 16:54:35 +00:00
untested macos
This commit is contained in:
parent
2eb3465704
commit
40fecdc214
2 changed files with 14 additions and 4 deletions
|
@ -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 .
|
||||
|
|
14
install.sh
14
install.sh
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue