Skip to content

Instantly share code, notes, and snippets.

@sergiusens
Last active August 29, 2015 14:01
Show Gist options
  • Save sergiusens/b3f16b62a2e7708a5f29 to your computer and use it in GitHub Desktop.
Save sergiusens/b3f16b62a2e7708a5f29 to your computer and use it in GitHub Desktop.
#!/bin/sh
DOWNLOAD_DIR=$HOME/test/download
OVERLAY_DIR=$HOME/test/overlay
mkdir -p $DOWNLOAD_DIR
cd $DOWNLOAD_DIR
set -e
for i in $(apt-get install --quiet --yes --print-uris python3-autopilot unity8-autopilot ubuntu-ui-toolkit-autopilot python3-evdev gir1.2-gconf-2.0 gir1.2-glib-2.0 gir1.2-ibus-1.0 gir1.2-upstart-app-launch-2 python3-autopilot-trace| grep http | cut -d\ -f1| sed -e "s/'//g")
do
wget -c $i
done
set +e
cd -
mkdir -p $OVERLAY_DIR
for i in $DOWNLOAD_DIR/*.deb
do
dpkg-deb -x "$i" $OVERLAY_DIR
done
#!/bin/sh
# This is meant to be sourced
ROOT=/home/phablet/test/overlay
export GI_TYPELIB_PATH=$ROOT/usr/lib/girepository-1.0
export PATH=$PATH:$ROOT/usr/bin
export LD_LIBRARY_PATH=$ROOT/lib:$ROOT/usr/lib:$ROOT/usr/lib/i386-linux-gnu
export PYTHONPATH=$ROOT/usr/lib/python3/dist-packages
sudo aa-clickhook -f --include=$ROOT/click.rules
sudo chmod 666 /dev/uinput
autopilot3 run -v $@
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment