Files
2025-10-13 22:09:29 +00:00

23 lines
450 B
Bash
Executable File

#!/bin/bash
if ! rpm -q rpm-build > /dev/null; then
sudo dnf install rpm-build -y
fi
if ! rpm -q rpmdevtools > /dev/null; then
sudo dnf install rpmdevtools -y
fi
if [ ! -d ~/rpmbuild ]; then
rpmdev-setuptree
fi
rpmdev-wipetree
cp src/yubico-authenticator.desktop ~/rpmbuild/SOURCES
rpmbuild -ba yubico-authenticator.spec
cp ~/rpmbuild/RPMS/x86_64/yubico-authenticator* releases/
cp ~/rpmbuild/SRPMS/yubico-authenticator* releases/