basicswap-bash/bsx/update.sh

27 lines
695 B
Bash
Raw Normal View History

#!/bin/bash
2024-06-04 02:20:34 +00:00
echo "Updating BasicSwapDEX" && sleep 1
# Delete dangling build folder. Same as --no-cache for docker
2024-06-07 00:23:03 +00:00
rm -rf $SWAP_DATADIR/basicswap/build
2024-09-16 00:14:47 +00:00
2024-10-17 17:28:56 +00:00
# BasicSwap, coincurve, and dependencies
2024-06-07 00:23:03 +00:00
# Switch to new repo: basicswap/basicswap
2024-09-16 00:14:47 +00:00
cd $SWAP_DATADIR/basicswap
2024-06-07 00:23:03 +00:00
git remote set-url origin https://github.com/basicswap/basicswap
2024-09-16 00:14:47 +00:00
# Conflicting messages_pb2.py from v0.12.7
if [[ -f basicswap/messages_pb2.py ]]; then
git restore basicswap/messages_pb2.py
fi
#git checkout master
git pull
2024-11-09 03:03:53 +00:00
$SWAP_DATADIR/venv/bin/pip3 install -r requirements.txt --require-hashes
$SWAP_DATADIR/venv/bin/pip3 install .
2024-09-16 00:14:47 +00:00
# Update Coin Cores
$HOME/.local/bin/bsx/auto_coinupd8.sh
# Cleanup
2024-09-20 22:09:54 +00:00
rm -rf basicswap-bash