mirror of
https://github.com/nahuhh/basicswap-bash.git
synced 2025-03-26 17:19:10 +00:00
Compare commits
2 commits
4d46146657
...
d7e379d89b
Author | SHA1 | Date | |
---|---|---|---|
|
d7e379d89b | ||
|
11d64eeca5 |
3 changed files with 9 additions and 2 deletions
|
@ -15,7 +15,7 @@ $SWAP_DATADIR/venv/bin/pip install .
|
|||
|
||||
## Clone basicswap git
|
||||
cd $SWAP_DATADIR
|
||||
git clone https://github.com/basicswap/basicswap -b dev
|
||||
git clone https://github.com/basicswap/basicswap
|
||||
cd $SWAP_DATADIR/basicswap
|
||||
## Install basicswap
|
||||
$SWAP_DATADIR/venv/bin/pip install .
|
||||
|
|
|
@ -18,7 +18,7 @@ rm -rf $SWAP_DATADIR/basicswap/build
|
|||
# Switch to new repo: basicswap/basicswap
|
||||
git remote set-url origin https://github.com/basicswap/basicswap
|
||||
# Fix conflicts from force-pushes and rebase
|
||||
git reset HEAD~50 --hard
|
||||
git checkout master
|
||||
# Pull repo
|
||||
git pull
|
||||
# Install
|
||||
|
|
|
@ -61,6 +61,7 @@ detect_os_arch() {
|
|||
fi
|
||||
}
|
||||
|
||||
|
||||
detect_os_arch
|
||||
|
||||
## Update & Install dependencies
|
||||
|
@ -172,6 +173,12 @@ if [ -d $HOME/.local/bin/bsx ]; then
|
|||
rm -r $HOME/.local/bin/bsx* $HOME/.local/bin/basicswap-bash
|
||||
fi
|
||||
mv -f -t $HOME/.local/bin/ basicswap-bash bsx*
|
||||
# Enable .profile detection on XFCE
|
||||
xfce_check=$(echo $XDG_CURRENT_DESKTOP | grep XFCE)
|
||||
xsessionrc_check=$(cat ~/.xsessionrc | grep '. ~/.profile')
|
||||
if [[ $xfce_chek ]] && [[ -z $xsessionrc_check ]]; then
|
||||
echo '. ~/.profile' | tee -a ~/.xsessionrc
|
||||
fi
|
||||
|
||||
## Make venv and set variables for install
|
||||
export SWAP_DATADIR=$HOME/coinswaps
|
||||
|
|
Loading…
Reference in a new issue