self extracting shell bash script
## makeself (14k min size)
# See: https://github.com/megastep/makeself
## for real minimalists
cat <<-EOF > /tmp/myapp.sh
#!/bin/sh -e
sed -e '1,/^exit$/d' "$0" | tar xzf - && /tmp/myapp/run.sh
exit
EOF
tar czf /tmp/myapp >> /tmp/myapp.sh
chmod +x /tmp/myapp.sh