Update packaging

main
Micke Nordin 4 years ago
parent 5ba1f46834
commit c606017cb4

@ -28,14 +28,17 @@ rpm-package is generated using alien, please let me know if it does not work for
### DEB
```
curl http://repo.mic.ke/debian/PUBLIC.KEY | sudo apt-key add -
curl http://repo.mic.ke/PUBLIC.KEY | sudo apt-key add -
curl http://repo.mic.ke/debian/debian-micke-unstable.list | sudo tee /etc/apt/sources.list.d/debian-micke-unstable.list
sudo apt update && sudo apt install wireguide
```
### RPM
```
sudo dnf install https://github.com/mickenordin/wireguide/releases/download/0.2.1/wireguide-0.2.1-1.noarch.rpm
wget http://repo.mic.ke/PUBLIC.KEY
sudo rpm --import PUBLIC.KEY
sudo dnf config-manager --add-repo http://repo.mic.ke/rpm/rpm-micke.repo
sudo dnf install wireguide
```
## sha256sums

@ -21,8 +21,10 @@ sed "s/##VERSION##/${VERSION}/" ${BASEDIR}/wireguide/rpm/wireguide-TEMPLATE.spec
# Change to build dir
cd wireguide-${VERSION}
# Build rpm
# Build rpm and put in repo
cp ${BASEDIR}/wireguide/rpm/macros ~/.rpmmacros
sudo rpmbuild --buildroot=$(pwd) -bb wireguide-${VERSION}.spec
sudo chown ${USER}:${USER} ${BASEDIR}/wireguide-${VERSION}.noarch.rpm
rpm --addsign ${BASEDIR}/wireguide-${VERSION}.noarch.rpm
cp ${BASEDIR}/wireguide-${VERSION}.noarch.rpm ${BASEDIR}/repo/rpm/
createrepo_c ${BASEDIR}/repo/rpm/

@ -0,0 +1,3 @@
%_gpg_name Mikael Nordin <hej@mic.ke>
%_gpg_path /home/micke/.gnupg
%__gpg /usr/bin/gpg
Loading…
Cancel
Save