1
0
Fork 0
mirror of https://github.com/sbrl/PolyFeed.git synced 2024-11-13 05:03:02 +00:00

Revert to path mapping, but try a symlink this time

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

16
build
View file

@ -52,6 +52,7 @@ task_setup() {
check_command msbuild true;
check_command nuget true;
check_command fpm true;
check_command dpkg true;
check_command awk true;
task_end 0;
@ -72,23 +73,20 @@ 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";
execute ln -s Release PolyFeed/bin/polyfeed;
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 \
--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 \
"${tmp_dir}";
PolyFeed/bin/polyfeed=/usr/lib \
polyfeed=/usr/bin;
execute rm PolyFeed/bin/polyfeed;
execute dpkg -c *.deb; # We don't know it's name :P
task_end $?;
}
task_archive() {