Last active
August 29, 2015 14:01
-
-
Save sergiusens/b3f16b62a2e7708a5f29 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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