mirror of
https://github.com/sbrl/PolyFeed.git
synced 2024-11-14 05:13:00 +00:00
fpm: Don't use path mapping
This commit is contained in:
parent
d4f351131d
commit
c94cd87d42
1 changed files with 9 additions and 2 deletions
11
build
11
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 $?;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue