From e268b91d84c51147b161a8a0c826d5ab58679d81 Mon Sep 17 00:00:00 2001 From: Starbeamrainbowlabs Date: Mon, 5 Aug 2019 12:25:28 +0100 Subject: [PATCH] Add initial fpm packaging to build script --- build | 17 +++++++++++++++-- polyfeed | 3 +++ 2 files changed, 18 insertions(+), 2 deletions(-) create mode 100755 polyfeed diff --git a/build b/build index 0f4634e..7751f78 100755 --- a/build +++ b/build @@ -70,12 +70,25 @@ 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)"; + execute fpm -s dir -t deb -n polyfeed -v "${version}" --license MPL-2.0 \ + --architecture all --maintainer "Starbeamrainbowlabs " \ + --description "Create Atom feeds for websites that don't support it" \ + --url "https://github.com/sbrl/PolyFeed" \ + --depends mono-runtime \ + PolyFeed/bin/Release=/usr/lib/polyfeed \ + polyfeed=/usr/bin; + task_end $?; +} + +task_archive() { + task_begin "Archiving artifacts"; + mv *.deb "${ARCHIVE}"; task_end $?; } task_ci() { - tasks_run setup build package; + tasks_run setup build package archive; } ############################################################################### diff --git a/polyfeed b/polyfeed new file mode 100755 index 0000000..106d07e --- /dev/null +++ b/polyfeed @@ -0,0 +1,3 @@ +#!/usr/bin/env bash + +mono /usr/lib/polyfeed/PolyFeed.exe $@;