How to create an AppImage?

I wanna make manually for example :

MyApp/usr
MyApp/usr/bin/app.x32
MyApp/usr/bin/app.x64
MyApp/usr/share/applications
MyApp/usr/share/icons
MyApp/usr/share/pixmaps
MyApp/usr/share/doc
MyApp/usr/share/man
MyApp/usr/lib32
MyApp/usr/lib64

and include binaries for 32 Bits and 64 Bits. if possible use an script to launch it

But i have a dunno. if i need the portable extract some files inside "$HOME/.config/" its possible to make it, and use the script for check if the file exist, if the files exist “do nothing” but if not exist. extract the files i need for the configuration of App, i can make that for the launcher-script the part of check files

From my scripts , i just need the “architecture” part :

# Get the Kernel Name
Kernel=$(uname -s)
case "$Kernel" in
    Linux)  Kernel="linux"              ;;
    Darwin) Kernel="mac"                ;;
    FreeBSD)    Kernel="freebsd"            ;;
* ) echo "Your Operating System -> ITS NOT SUPPORTED"   ;;
esac

echo
echo "Operating System Kernel : $Kernel"
echo

# Get the machine Architecture
Architecture=$(uname -m)
case "$Architecture" in
    x86)    Architecture="x86"                  ;;
    ia64)   Architecture="ia64"                 ;;
    i?86)   Architecture="x86"                  ;;
    amd64)  Architecture="amd64"                    ;;
    x86_64) Architecture="x86_64"                   ;;
    sparc64)    Architecture="sparc64"                  ;;
* ) echo    "Your Architecture '$Architecture' -> ITS NOT SUPPORTED."   ;;
esac

echo
echo "Operating System Architecture : $Architecture"
echo

Yesterday i try to use :

$ ./AppDirAssistant\ 0.3.1 
Traceback (most recent call last):
  File "./bin//appimager", line 15, in <module>
    import sys, os, gtk, shutil, time, datetime
  File "/usr/lib64/python2.7/site-packages/gtk-2.0/gtk/__init__.py", line 30, in <module>
    import gobject as _gobject
  File "/usr/lib64/python2.7/site-packages/gobject/__init__.py", line 26, in <module>
    from glib import spawn_async, idle_add, timeout_add, timeout_add_seconds, \
  File "/usr/lib64/python2.7/site-packages/glib/__init__.py", line 22, in <module>
    from glib._glib import *
ImportError: /usr/lib64/python2.7/site-packages/glib/_glib.so: undefined symbol: PyUnicodeUCS2_DecodeUTF8

$ ./AppImageAssistant\ 0.9 
Traceback (most recent call last):
  File "/tmp/.mount_EYpPMb/AppImageAssistant", line 36, in <module>
    import os, sys, gtk, vte
  File "/usr/lib64/python2.7/site-packages/gtk-2.0/gtk/__init__.py", line 30, in <module>
    import gobject as _gobject
  File "/usr/lib64/python2.7/site-packages/gobject/__init__.py", line 26, in <module>
    from glib import spawn_async, idle_add, timeout_add, timeout_add_seconds, \
  File "/usr/lib64/python2.7/site-packages/glib/__init__.py", line 22, in <module>
    from glib._glib import *
ImportError: /usr/lib64/python2.7/site-packages/glib/_glib.so: undefined symbol: PyUnicodeUCS2_DecodeUTF8

This not work under Slackware64 14.2 :’(
I prefer and need a manually method, to understand i should do
and the method, works on every distribution without exceptions.