3
# Copyright 2014 Canonical Ltd.
5
# This program is free software; you can redistribute it and/or modify
6
# it under the terms of the GNU Lesser General Public License as published by
7
# the Free Software Foundation; version 3.
9
# This program is distributed in the hope that it will be useful,
10
# but WITHOUT ANY WARRANTY; without even the implied warranty of
11
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
# GNU Lesser General Public License for more details.
14
# You should have received a copy of the GNU Lesser General Public License
15
# along with this program. If not, see <http://www.gnu.org/licenses/>.
17
# Author: Christian Dywan <christian.dywan@canonical.com>
19
ARCH=arm-linux-gnueabihf
21
# Make the image writable
22
phablet-config writable-image || exit 1
23
# Copy selectively to avoid pushing binaries (arch conflict) and sources (unneeded)
25
for i in $(ls Ubuntu/Components/*.qml 2>/dev/null); do
26
echo modules/$i '->' /usr/lib/$ARCH/qt5/qml/Ubuntu/Components/
27
adb push $i /usr/lib/$ARCH/qt5/qml/Ubuntu/Components/
29
for i in $(ls Ubuntu/Components/*.js 2>/dev/null); do
30
echo modules/$i '->' /usr/lib/$ARCH/qt5/qml/Ubuntu/Components/
31
adb push $i /usr/lib/$ARCH/qt5/qml/Ubuntu/Components/
34
for i in ListItems Pickers Popups Colors Styles Themes artwork; do
35
adb push modules/Ubuntu/Components/$i/ /usr/lib/$ARCH/qt5/qml/Ubuntu/Components/$i || exit 1
37
# Autopilot tests should always match the Toolkit
38
adb push tests/autopilot/ubuntuuitoolkit/ /usr/lib/python2.7/dist-packages/ubuntuuitoolkit || exit 1
39
adb push examples/ubuntu-ui-toolkit-gallery/ /usr/lib/ubuntu-ui-toolkit/examples/ubuntu-ui-toolkit-gallery || exit 1
40
# For launching the gallery easily
41
adb push examples/ubuntu-ui-toolkit-gallery/*.desktop /usr/share/applications/ || exit 1