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

Add initial fpm packaging to build script

This commit is contained in:
Starbeamrainbowlabs 2019-08-05 12:25:28 +01:00
parent 51385a1d74
commit e268b91d84
Signed by: sbrl
GPG key ID: 1BE5172E637709C2
2 changed files with 18 additions and 2 deletions

17
build
View file

@ -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 <feedback@starbeamrainbowlabs.com>" \
--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;
}
###############################################################################

3
polyfeed Executable file
View file

@ -0,0 +1,3 @@
#!/usr/bin/env bash
mono /usr/lib/polyfeed/PolyFeed.exe $@;