1
0
Fork 0
mirror of https://github.com/sbrl/PolyFeed.git synced 2024-11-14 05:13:00 +00:00

Switch to awk instead of xidel when determining the version number

This commit is contained in:
Starbeamrainbowlabs 2019-08-05 12:31:20 +01:00
parent 638728c4d5
commit a1c3633890
Signed by: sbrl
GPG key ID: 1BE5172E637709C2

3
build
View file

@ -52,6 +52,7 @@ task_setup() {
check_command msbuild true; check_command msbuild true;
check_command nuget true; check_command nuget true;
check_command fpm true; check_command fpm true;
check_command awk true;
task_end 0; task_end 0;
@ -72,7 +73,7 @@ task_build() {
task_package() { task_package() {
task_begin "Packaging as .deb"; task_begin "Packaging as .deb";
version="$(xidel -q PolyFeed/PolyFeed.csproj -e "css('ReleaseVersion')")-$(date +"%Y-%m-%dT%H:%M")+$(git rev-parse HEAD | head -c7)"; version="$(awk '/version = / { print $3 }' PolyFeed.sln)-$(date +"%Y-%m-%dT%H:%M")+$(git rev-parse HEAD | head -c7)";
execute fpm -s dir -t deb -n polyfeed -v "${version}" --license MPL-2.0 \ execute fpm -s dir -t deb -n polyfeed -v "${version}" --license MPL-2.0 \
--architecture all --maintainer "Starbeamrainbowlabs <feedback@starbeamrainbowlabs.com>" \ --architecture all --maintainer "Starbeamrainbowlabs <feedback@starbeamrainbowlabs.com>" \
--description "Create Atom feeds for websites that don't support it" \ --description "Create Atom feeds for websites that don't support it" \