# Test AppImage on many distributions
# using Live CD ISO files

sudo apt-get -y install git unionfs-fuse

git clone https://github.com/probonopd/AppImageKit.git
cd AppImageKit

cp /usr/bin/unionfs-fuse ./AppImageAssistant.AppDir/unionfs-fuse

rm -r log
sudo find /isodevice/boot/iso/*amd64*iso -exec bash ./AppImageAssistant.AppDir/testappimage {} /home/me/Downloads/Subsurface_4.5.1.109_x86_64.AppImage >> log 2>&1  \;
sudo find /isodevice/boot/iso/*_64*iso -exec bash ./AppImageAssistant.AppDir/testappimage {} /home/me/Downloads/Subsurface_4.5.1.109_x86_64.AppImage >> log 2>&1  \;

# Now have to close every Subsurface instance by hand

# Test AppImage on many distributions
# using Live CD ISO files

sudo apt-get -y install git unionfs-fuse

git clone https://github.com/probonopd/AppImageKit.git
cd AppImageKit

cp /usr/bin/unionfs-fuse ./AppImageAssistant.AppDir/unionfs-fuse

rm -r log

# Test 64-bit AppImage
sudo find /isodevice/boot/iso/*amd64*iso -exec bash ./AppImageAssistant.AppDir/testappimage {} $HOME/Downloads/Subsurface_*_x86_64.AppImage >> log 2>&1  \;
sudo find /isodevice/boot/iso/*_64*iso -exec bash ./AppImageAssistant.AppDir/testappimage {} $HOME/Downloads/Subsurface_*_x86_64.AppImage >> log 2>&1  \;

# Test 32-bit AppImage; works on a 64-bit host
sudo find /isodevice/boot/iso/*i386*iso -exec linux32 ./AppImageAssistant.AppDir/testappimage /isodevice/boot/iso/ubuntu-12.04.2-desktop-i386.iso $HOME/Downloads/Subsurface_*_i386.AppImage >> log 2>&1  \;
sudo find /isodevice/boot/iso/*i686*iso -exec linux32 ./AppImageAssistant.AppDir/testappimage /isodevice/boot/iso/ubuntu-12.04.2-desktop-i386.iso $HOME/Downloads/Subsurface_*_i386.AppImage >> log 2>&1  \;

# Now have to close every Subsurface instance by hand

Test 32-bit AppImage; works on a 64-bit host
Test 32-bit AppImage; works on a 64-bit host