
The Google Earth EULA doesn't allow redistribution, but it is easy to create your own Google Earth AppImage:
- Code: Select all
# Make AppDir
mkdir GoogleEarth.AppDir
cd GoogleEarth.AppDir/
# Download latest version of Google Earth directly from Google
wget "https://dl-ssl.google.com/linux/direct/google-earth-stable_current_i386.deb"
# Extract deb into AppDir (use a deb-based distribution to do this)
dpkg -x *.deb .
# Move things into place
mv opt/google/earth/free/* usr/bin/
cp ./usr/bin/product_logo_48.png google-earth.png
cp usr/bin/*.desktop .
# Delete stuff we don't need any more
rm -rf *.deb opt/ etc/
# Fix desktop file so that AppImageAssistant doesn't complain later on
sed -i -e 's|/opt/google/earth/free/google-earth|AppRun|g' *.desktop
# Fix Google Earth dependency on lsb package, which is not installed by default on Ubuntu
sed -i -e 's|/lib/ld-lsb.so.3|././/ld-lsb.so.3|g' usr/bin/googleearth-bin
cd usr/bin/
ln -s /lib/ld-linux.so.2 ld-lsb.so.3
cd -
# Hand-written AppRun file to work around the ld-lsb.so.3 issue
cat > ./AppRun <<EOF
#!/bin/sh
HERE="$(dirname "$(readlink -f "${0}")")"
cd "${HERE}/usr/bin"
LD_LIBRARY_PATH=.:$LD_LIBRARY_PATH exec ./googleearth-bin "$@"
EOF
# Make it executable
chmod 0755 ./AppRun
# Run the AppDir through AppImageAssistant to get an AppImage; rename it to include the version number
