Skip to content

Commit

Permalink
Include libpng to fix package on ubuntu 18.04+
Browse files Browse the repository at this point in the history
  • Loading branch information
qchateau committed Dec 23, 2018
1 parent 3befa29 commit a67b512
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion AutoPanorama.pro
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ QT += core gui

greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

LINUX_VERSION = 1.2.0.2
LINUX_VERSION = 1.2.0.3
WIN_VERSION = 1.1.0.1
TARGET = autopanorama
TEMPLATE = app
Expand Down
4 changes: 4 additions & 0 deletions scripts/linux_deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ for file in $libs_files; do
fi
done

# include libpng to the package as it causes incompatibility between ubuntu 16.04 and 18.04+
libpng_path=$(echo "$needed_libs" | grep libpng | cut -d ' ' -f 3)

dpkg_build_dir=$dpkg_dir/pkg
exec_file_dst=$dpkg_build_dir/usr/bin/$exec_name
desktop_file_dst=$dpkg_build_dir/usr/share/applications/${exec_name}.desktop
Expand Down Expand Up @@ -67,6 +70,7 @@ mkdir -p $libs_dst
cp $exec_file $exec_file_dst
cp $desktop_file $desktop_file_dst
cp $icon_file $icon_file_dst
cp $libpng_path $libs_dst
cp -a $used_libs_files $libs_dst
cp $control_file $dpkg_build_dir/DEBIAN

Expand Down

0 comments on commit a67b512

Please sign in to comment.