+# Detect system architecture to know which binaries of AppImage tools
+# should be downloaded and used.
+case "$(uname -i)" in
+ x86_64|amd64)
+# echo "x86-64 system architecture"
+ SYSTEM_ARCH="x86_64";;
+ i?86)
+# echo "x86 system architecture"
+ SYSTEM_ARCH="i686";;
+# arm*)
+# echo "ARM system architecture"
+# SYSTEM_ARCH="";;
+ unknown)
+# uname -i not answer on debian, then:
+ case "$(uname -m)" in
+ x86_64|amd64)
+# echo "x86-64 system architecture"
+ SYSTEM_ARCH="x86_64";;
+ i?86)
+# echo "x86 system architecture"
+ SYSTEM_ARCH="i686";;
+ esac ;;
+ *)
+ echo "Unsupported system architecture"
+ exit 1;;
+esac
+