1
0
Fork 0
mirror of https://github.com/sbrl/PolyFeed.git synced 2024-11-21 06:22:59 +00:00

fpm: Don't use path mapping

This commit is contained in:
Starbeamrainbowlabs 2019-08-05 13:33:16 +01:00
parent d4f351131d
commit c94cd87d42
Signed by: sbrl
GPG key ID: 1BE5172E637709C2

11
build
View file

@ -72,6 +72,14 @@ task_build() {
}
task_package() {
task_begin "Preparing for packaging";
tmp_dir="./deb_package";
mkdir -p "${tmp_dir}/usr/lib/polyfeed";
mkdir -p "${tmp_dir}/usr/bin";
cp -ral PolyFeed/bin/Release/* /usr/lib/polyfeed;
cp -al polyfeed "${tmp_dir}/usr/bin";
task_end $?;
task_begin "Packaging as .deb";
version="$(awk '/version = / { print($3) }' PolyFeed.sln | tr -d '\n\r')-$(date +"%Y-%m-%dT%H:%M")+$(git rev-parse HEAD | head -c7)";
fpm -s dir -t deb -n polyfeed -v "${version}" --license MPL-2.0 \
@ -79,8 +87,7 @@ task_package() {
--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;
"${tmp_dir}";
task_end $?;
}