Sonarr/distribution/debian.sh

24 lines
576 B
Bash
Raw Normal View History

2018-01-26 19:30:13 +00:00
fromdos ./debian/*
echo Version: "$dependent_build_number" Branch: "$dependent_build_branch"
rm -r ./sonarr_bin/Sonarr.Update
chmod -R 664 ./sonarr_bin/*
2018-01-26 19:30:13 +00:00
echo Updating changelog
sed -i "s/{version}/$dependent_build_number/g" debian/changelog
sed -i "s/{branch}/$dependent_build_branch/g" debian/changelog
echo Running debuild
debuild -b
echo Moving stuff around
mv ../sonarr_*.deb ./
mv ../sonarr_*.changes ./
rm ../sonarr_*.build
echo Signing Package
dpkg-sig -k 884589CE --sign builder "sonarr_${dependent_build_number}_all.deb"
echo running alien
alien -r -v ./*.deb