1
0
Fork 0
mirror of https://github.com/sbrl/PolyFeed.git synced 2024-12-24 10:45:02 +00:00

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

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" \