fix cavif references
Some checks failed
continuous-integration/drone Build is failing

This commit is contained in:
askiiart 2025-03-10 13:01:51 -05:00
parent 87f0c7de9c
commit 686520cc18
Signed by untrusted user who does not match committer: askiiart
GPG key ID: 6A32977DAF31746A

8
run.sh
View file

@ -3,13 +3,13 @@ set -euo pipefail
program_name="fjord-launcher-unlocked" program_name="fjord-launcher-unlocked"
built_dir=${COMPILED_DIR:-/compiled}/cavif built_dir=${COMPILED_DIR:-/compiled}/$program_name
version=$(cat $built_dir/version) version=$(cat $built_dir/version)
repo_dir=${REPO_DIR:-/repo} repo_dir=${REPO_DIR:-/repo}
# skip if already up-to-date # skip if already up-to-date
# TODO: use the repo instead and check the version with dnf # TODO: use the repo instead and check the version with dnf
# yeah this is bad; see also the cavif-aaaaaa thing below # yeah this is bad; see also the fjord-launcher-unlocked-aaaaaa thing below
touch $repo_dir/$program_name-tmp touch $repo_dir/$program_name-tmp
if $(ls $repo_dir/$program_name-* | grep -q "$version"); then if $(ls $repo_dir/$program_name-* | grep -q "$version"); then
rm $repo_dir/$program_name-tmp rm $repo_dir/$program_name-tmp
@ -25,8 +25,8 @@ rpmdev-setuptree
sed -i "s/Version:.*/Version: $version/g" $program_name.spec sed -i "s/Version:.*/Version: $version/g" $program_name.spec
# build package and move to the repo # build package and move to the repo
rpmbuild -bb cavif.spec rpmbuild -bb $program_name.spec
mv ~/rpmbuild/RPMS/x86_64/cavif-$version-* $repo_dir/ mv ~/rpmbuild/RPMS/x86_64/$program_name-$version-* $repo_dir/
# remove old versions # remove old versions
cd $repo_dir cd $repo_dir