build: fix version number

This commit is contained in:
Starbeamrainbowlabs 2019-08-05 14:02:37 +01:00
parent 9ba1c7f162
commit afc27b58f1
Signed by: sbrl
GPG Key ID: 1BE5172E637709C2
1 changed files with 4 additions and 2 deletions

6
build
View File

@ -75,8 +75,10 @@ task_build() {
task_package() {
task_begin "Packaging as .deb";
execute cp -ral PolyFeed/bin/Release PolyFeed/bin/polyfeed;
version="$(awk '/version = / { print($3) }' PolyFeed.sln | tr -d '\n\r')-$(date +"%Y-%m-%dT%H:%M")+$(git rev-parse HEAD | head -c7)";
fpm -s dir -t deb -n polyfeed -v "${version}" --license MPL-2.0 \
version="$(awk '/version = / { print($3) }' PolyFeed.sln | tr -d '\n\r')-$(date +"%Y%m%dT%H%M").$(git rev-parse HEAD | head -c7)";
fpm -s dir -t deb -n polyfeed \
--epoch 0 -v "${version}" \
--license MPL-2.0 \
--architecture all --maintainer "Starbeamrainbowlabs <feedback@starbeamrainbowlabs.com>" \
--description "Create Atom feeds for websites that don't support it" \
--url "https://github.com/sbrl/PolyFeed" \