diff options
Diffstat (limited to 'appimage/build-appimage')
-rwxr-xr-x | appimage/build-appimage | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/appimage/build-appimage b/appimage/build-appimage index 03039ed1..04fa805b 100755 --- a/appimage/build-appimage +++ b/appimage/build-appimage @@ -43,24 +43,25 @@ if [ "x$1" == "x--sign" ]; then fi -# Check if we are on Ubuntu Trusty +# Check Ubuntu Distribution _osversion=$(cat /etc/os-release | grep PRETTY_NAME | awk -F'=' '{print $2}' | sed 's#"##g') # Warn users building the AppImage locally: -if [[ ! $_osversion =~ Ubuntu\ 16.04.*\ LTS ]]; then +if [[ ! $_osversion =~ Ubuntu\ 18.04.*\ LTS ]]; then set +x echo "" # 0 1 2 3 4 5 6 7 # 01234567890123456789012345678901234567890123456789012345678901234567890123456789 echo "+===========================================================================+" echo "|| WARNING: You are about to build a QPDF AppImage on a system which is ||" - echo "|| NOT Ubuntu 16.04 LTS ('Xenial'). ||" + echo "|| NOT Ubuntu 18.04 LTS. ||" echo "|| ||" echo "|| It is recommended that you use a distribution that is at least a ||" echo "|| few years old to maximize the number of Linux distributions the ||" echo "|| resulting AppImage will work on. AppImages often don't work on ||" echo "|| distributions older than the one they were built on because of ||" - echo "|| standard library differences. ||" + echo "|| standard library differences. The oldest supported Ubuntu LTS is ||" + echo "|| a good option. ||" echo "+===========================================================================+" echo "" set -x |