1
0
Fork 0
mirror of https://github.com/sbrl/PolyFeed.git synced 2024-11-22 06:23:02 +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_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"; 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)"; 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 \ 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" \ --description "Create Atom feeds for websites that don't support it" \
--url "https://github.com/sbrl/PolyFeed" \ --url "https://github.com/sbrl/PolyFeed" \
--depends mono-runtime \ --depends mono-runtime \
PolyFeed/bin/Release=/usr/lib/polyfeed \ "${tmp_dir}";
polyfeed=/usr/bin;
task_end $?; task_end $?;
} }