This commit is contained in:
parent
87f0c7de9c
commit
686520cc18
1 changed files with 4 additions and 4 deletions
8
run.sh
8
run.sh
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue