@@ -15,23 +15,17 @@ download source
15 $ bzr branch lp:unity8 ~/unity8/trunk
15 $ bzr branch lp:unity8 ~/unity8/trunk
16 $ cd ~/unity8/trunk
16 $ cd ~/unity8/trunk
18−install dependencies
18+install dependencies and build Unity 8
19--------------------
19--------------------
20−If its your first time, install build dependencies
22$ cd ~/unity8/trunk
21$ cd ~/unity8/trunk
23−$ ./build.sh --setup
22+$ ./build.sh
26− - install the required dependencies to build, as well as run on the desktop
27− - it should also install unity-scope-home and unity-lens-application which
28− are technically "recommends", not strict dependencies
30−build Unity 8
24+ If its your first time, this will install the required dependencies to build and
31−-------------
25+ build it.
33−$ cd ~/unity8/trunk
27+ You might want to also install unity-scope-home and unity-scope-click which
34−$ ./build.sh
28+ are technically "recommends", not strict dependencies
36You may also rebuild with the -c for clean, which just deletes the build
30You may also rebuild with the -c for clean, which just deletes the build
@@ -43,13 +37,15 @@ Running Unity 8 on your desktop
43run the Unity 8 shell
37run the Unity 8 shell
44---------------------
38---------------------
45$ cd ~/unity8/trunk
39$ cd ~/unity8/trunk
46−$ ./run.sh
40+$ cd builddir
48−Options can be passed to test the lock screen
42+Each component of unity8 can be ran independently for development and testing
49−$ ./run.sh -p OR -k
43+For example:
51−-p is for pin lock, for which the default prompt answer is "1234"
48+Check out the tests/qmltests/ directory for a list of things that can be ran.
52−-k is for keylock passphrase, for which the default prompt answer is "password"
@@ -70,50 +66,15 @@ Notes
71Running Unity 8 on devices
67Running Unity 8 on devices
72==========================
68==========================
73−- Ubuntu Touch builds are currently only available in 14.04 flavour
74−- supported hardware should match one of those listed here
75− https://wiki.ubuntu.com/Touch/Devices#Running_fine
76−- follow the Ubuntu Touch install instructions for your chosen device
77− https://wiki.ubuntu.com/Touch/Install
78−- make sure your device is connected to a network
79−- also make sure you have your SSH key in ~/.ssh/id_rsa.pub (or install one
80− on the device yourself)
83−$ ./run_on_device.sh --setup
85− - install your public SSH key on the device
86− - install the needed dependencies
88−$ ./run_on_device.sh
70+Running unity8 on a device should be done using crossbuilder.
90− - rsync the code to the device
72+* https://launchpad.net/crossbuilder and
91− - build on the device
73+* https://wiki.ubuntu.com/Touch/Crossbuilder
92− - replace the running shell
74+for more details on crossbuilder.
94−Options can be passed to test the lock screen
95−$ ./run_on_device.sh -p OR -k
97−-p is for pin lock, for which the default prompt answer is "1234"
98−-k is for keylock passphrase, for which the default prompt answer is "password"
102−- using adb over TCP has some advantages, Google will be of help here
103− - NOTE: this is not yet available for flipped images
104− - TL;DR: `adb tcpip 5555; adb connect $your_device_ip`
105− - you can persist the above via `adb shell setprop persist.adb.tcp.port 5555`
106− - it's unsafe - anyone can connect to your device
107− - with TCP the Nexus 10 doesn't drop the adb connection when locking
109−- exporting ANDROID_SERIAL=$your_device_serial or
110− ANDROID_SERIAL=$your_device_ip:5555 will make adb not complain about
112−- you can export TARGET_IP=$your_device_ip TARGET_SSH_PORT=22 for run_on_device.sh
113− to not use adb forwarding - useful if you use multiple devices
114−- using Ninja (package ninja-build - run_on_device.sh -s installs this now)
115− will improve build times (especially in the nothing-to-build case)
76+unity8 will automatically restart on the phone once deployment
77+has finished due to post-build-steps set up in this repository.
118Coding guidelines
79Coding guidelines
119=================
80=================