mirror of
https://github.com/nahuhh/basicswap-bash.git
synced 2025-02-27 21:20:15 +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
|
cd $SWAP_DATADIR
|
||||||
git clone https://github.com/basicswap/basicswap
|
git clone https://github.com/basicswap/basicswap
|
||||||
cd $SWAP_DATADIR/basicswap
|
cd $SWAP_DATADIR/basicswap
|
||||||
|
## Macos
|
||||||
|
if [[ $MACOS ]]; then
|
||||||
|
$SWAP_DATADIR/venv/bin/pip install certifi
|
||||||
|
fi
|
||||||
## Install basicswap
|
## Install basicswap
|
||||||
$SWAP_DATADIR/venv/bin/pip install wheel
|
$SWAP_DATADIR/venv/bin/pip install wheel
|
||||||
$SWAP_DATADIR/venv/bin/pip install .
|
$SWAP_DATADIR/venv/bin/pip install .
|
||||||
|
|
14
install.sh
14
install.sh
|
@ -63,9 +63,16 @@ detect_os_arch() {
|
||||||
UPDATE="sudo pacman -Syu"
|
UPDATE="sudo pacman -Syu"
|
||||||
DEPENDENCY="python-pipenv gnupg pkgconf base-devel"
|
DEPENDENCY="python-pipenv gnupg pkgconf base-devel"
|
||||||
$green"\nDetected Arch Linux\n";$nocolor
|
$green"\nDetected Arch Linux\n";$nocolor
|
||||||
elif type -P brew > /dev/null; then
|
elif [[ $(uname -s) = "Darwin" ]]; then
|
||||||
# MacOS
|
# MacOS
|
||||||
INSTALL="brew install"
|
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"
|
DEPENDENCY="python gnupg pkg-config"
|
||||||
$green"\nDetected MacOS\n";$nocolor
|
$green"\nDetected MacOS\n";$nocolor
|
||||||
else
|
else
|
||||||
|
@ -74,7 +81,6 @@ detect_os_arch() {
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
detect_os_arch
|
detect_os_arch
|
||||||
|
|
||||||
## Update & Install dependencies
|
## Update & Install dependencies
|
||||||
|
|
Loading…
Reference in a new issue