From c94cd87d423bb1ae539d3d007c34d173d001bd76 Mon Sep 17 00:00:00 2001 From: Starbeamrainbowlabs Date: Mon, 5 Aug 2019 13:33:16 +0100 Subject: [PATCH] fpm: Don't use path mapping --- build | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/build b/build index 0904310..d200da2 100755 --- a/build +++ b/build @@ -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 $?; }