Merge lp:~achiang/telegram-app/karni-fix-1 into lp:telegram-app/app

Proposed by Alex Chiang
Status: Merged
Merged at revision: 31
Proposed branch: lp:~achiang/telegram-app/karni-fix-1
Merge into: lp:telegram-app/app
Diff against target: 32 lines (+9/-5)
2 files modified
README.md (+1/-5)
click.sh (+8/-0)
To merge this branch: bzr merge lp:~achiang/telegram-app/karni-fix-1
Reviewer Review Type Date Requested Status
Michał Karnicki (community) Approve
Review via email: mp+230893@code.launchpad.net

Description of the change

Cherry-pick another of karni's code to make ``click.sh install`` work.

To post a comment you must log in.
Revision history for this message
Michał Karnicki (karni) wrote :

I'm glad! I actually use that multiple times a day :)

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'README.md'
--- README.md 2014-08-06 11:47:02 +0000
+++ README.md 2014-08-14 21:18:22 +0000
@@ -44,11 +44,7 @@
44This step will create an armhf click package suitable for installation on44This step will create an armhf click package suitable for installation on
45an Ubuntu Phone/Tablet device. To install the package for testing:45an Ubuntu Phone/Tablet device. To install the package for testing:
4646
47 adb push com.canonical.telegram* /tmp47 ./click.sh install
48 adb shell
49 sudo -iu phablet
50 cd /tmp
51 pkcon install-local com.canonical.telegram*
5248
53Afterwards, search for the "telegram" in the App scope, and tap the icon49Afterwards, search for the "telegram" in the App scope, and tap the icon
54to launch the app.50to launch the app.
5551
=== modified file 'click.sh'
--- click.sh 2014-08-01 08:41:35 +0000
+++ click.sh 2014-08-14 21:18:22 +0000
@@ -35,3 +35,11 @@
35echo "Done click packaging."35echo "Done click packaging."
36echo "ARCHITECTURE: ${CLICK_SDK_ARCH}"36echo "ARCHITECTURE: ${CLICK_SDK_ARCH}"
37echo "---------------------"37echo "---------------------"
38
39if [ "$1" == "install" ]; then
40 PACKAGE=com.canonical.telegram
41 CLICK=$(ls *.click|tail -n 1)
42 adb shell click unregister --user=phablet $PACKAGE
43 adb push $CLICK /tmp/
44 adb shell sudo -u phablet -i pkcon install-local /tmp/$CLICK
45fi

Subscribers

People subscribed via source and target branches

to all changes: