2018-01-26 20:30:13 +01:00
|
|
|
fromdos ./debian/*
|
2018-11-18 20:11:04 +01:00
|
|
|
|
|
|
|
BuildVersion=${dependent_build_number:-3.10.0.999}
|
|
|
|
BuildBranch=${dependent_build_branch:-master}
|
|
|
|
|
|
|
|
echo Version: "$BuildVersion" Branch: "$BuildBranch"
|
2018-01-26 20:30:13 +01:00
|
|
|
|
|
|
|
rm -r ./sonarr_bin/Sonarr.Update
|
2018-11-10 01:24:42 +01:00
|
|
|
rm ./sonarr_bin/System.Runtime.InteropServices.RuntimeInformation.dll
|
2018-11-18 20:11:04 +01:00
|
|
|
rm ./sonarr_bin/UI/*.map ./sonarr_bin/UI/Content/*.map
|
2018-11-10 01:24:42 +01:00
|
|
|
chmod -R ugo-x,ugo+rwX,go-w ./sonarr_bin/*
|
2018-01-26 20:30:13 +01:00
|
|
|
|
2018-11-18 20:11:04 +01:00
|
|
|
echo Updating changelog for $BuildVersion
|
|
|
|
sed -i "s:{version}:$BuildVersion:g; s:{branch}:$BuildBranch:g;" debian/changelog
|
2018-01-26 20:30:13 +01:00
|
|
|
|
2018-11-18 20:11:04 +01:00
|
|
|
echo Running debuild for $BuildVersion
|
2018-01-26 20:30:13 +01:00
|
|
|
debuild -b
|
|
|
|
|
|
|
|
echo Moving stuff around
|
|
|
|
mv ../sonarr_*.deb ./
|
|
|
|
mv ../sonarr_*.changes ./
|
|
|
|
rm ../sonarr_*.build
|
|
|
|
|
|
|
|
echo Signing Package
|
2018-11-18 20:11:04 +01:00
|
|
|
dpkg-sig -k 884589CE --sign builder "sonarr_${BuildVersion}_all.deb"
|
2018-01-26 20:30:13 +01:00
|
|
|
|
|
|
|
echo running alien
|
|
|
|
alien -r -v ./*.deb
|