mirror of
https://github.com/sbrl/PolyFeed.git
synced 2024-11-13 05:03:02 +00:00
Switch to awk instead of xidel when determining the version number
This commit is contained in:
parent
638728c4d5
commit
a1c3633890
1 changed files with 2 additions and 1 deletions
3
build
3
build
|
@ -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" \
|
||||
|
|
Loading…
Reference in a new issue