PrismLauncher/packages/rpm/makerpm.sh

10 lines
229 B
Bash
Raw Normal View History

2022-01-09 03:44:18 +00:00
#!/usr/bin/env bash
git submodule init
git submodule update
VERSION=$(git describe --tags | sed 's/-.*//')
DIR=$(pwd)
sed -i "s/Version:.*/Version: ${VERSION}/" polymc.spec
sudo dnf builddep polymc.spec
rpmbuild -ba polymc.spec