mirror of
https://github.com/sbrl/PolyFeed.git
synced 2024-11-21 06:22:59 +00:00
Add initial fpm packaging to build script
This commit is contained in:
parent
51385a1d74
commit
e268b91d84
2 changed files with 18 additions and 2 deletions
15
build
15
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 <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
3
polyfeed
Executable file
|
@ -0,0 +1,3 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
mono /usr/lib/polyfeed/PolyFeed.exe $@;
|
Loading…
Reference in a new issue