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
1 changed files with 2 additions and 1 deletions

3
build
View File

@ -52,6 +52,7 @@ task_setup() {
check_command msbuild true;
check_command nuget true;
check_command fpm true;
check_command awk true;
task_end 0;
@ -72,7 +73,7 @@ task_build() {
task_package() {
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 \
--architecture all --maintainer "Starbeamrainbowlabs <feedback@starbeamrainbowlabs.com>" \
--description "Create Atom feeds for websites that don't support it" \