-
Notifications
You must be signed in to change notification settings - Fork 0
/
updskywirebin.sh
executable file
·20 lines (20 loc) · 997 Bytes
/
updskywirebin.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/usr/bin/bash
#update skywire-bin debian package
_aptrepo="apt-repo"
[[ ! -f "$(pwd)/${BASH_SOURCE}" ]] && echo "please execute this script in the same working dir" && exit 1
[[ "$(pwd)" != ${HOME}/go/src/github.com/skycoin/${_aptrepo} ]] && echo "please move the cloned repository to $HOME/go/src/github.com/skycoin/${_aptrepo}" && exit 1
[[ -f skywire-bin*.deb ]] && rm skywire-bin*.deb
[[ ! -d $HOME/.cache/yay/skywire-bin ]] && printf '%s\n' Ab | yay -Syy skywire-bin #its not necessary to actually install it
cd $HOME/.cache/yay/skywire-bin || exit 1
git reset --hard
git pull
updpkgsums
updpkgsums cc.deb.PKGBUILD
makepkg -fp cc.deb.PKGBUILD || exit 1
mv skywire-bin*.deb $HOME/go/src/github.com/skycoin/${_aptrepo}/ || exit 1
cd $HOME/go/src/github.com/skycoin/${_aptrepo}/ || exit 1
reprepro -Vb . remove sid skywire-bin || exit 1
reprepro -Vb . includedeb sid skywire-bin*.deb || exit 1
[[ ! -d archive ]] && mkdir archive
mv skywire-bin*.deb archive/
#echo "now sign the release file"