on xenial help sign in
Only use ppa:ubuntu-unity/next and clean build scripts and CODING, accordingly.
875d451Michał Sawicz
CODING+5−6
@@ -23,15 +23,12 @@ $ cd ~/unity8/trunk
23$ ./build --setup
23$ ./build --setup
24
24
25 this will:
25 this will:
26− - add the following PPA's
27− - ppa:phablet-team/desktop-deps
28− - ppa:canonical-qt5-edgers/qt5-proper
29− - ppa:ubuntu-sdk-team
26+ - add ppa:ubuntu-unity/next
30 - install the required dependencies to build, as well as run on the desktop
27 - install the required dependencies to build, as well as run on the desktop
31 - it should also install unity-scope-home and unity-lens-application which
28 - it should also install unity-scope-home and unity-lens-application which
32 are technically "recommends", not strict dependencies
29 are technically "recommends", not strict dependencies
33
30
34−Note, once the PPA's are added, the script runs apt-get update, if you have
31+Note, once the PPA is added, the script runs apt-get update, if you have
35any failures associated with it, the build script will bail out of the setup
32any failures associated with it, the build script will bail out of the setup
36and fail to install all the required dependencies.
33and fail to install all the required dependencies.
37
34
@@ -45,6 +42,7 @@ $ ./build
45You may also rebuild with the -c for clean, which just deletes the build
42You may also rebuild with the -c for clean, which just deletes the build
46directory.
43directory.
47
44
45+
48Running Unity 8 on your desktop
46Running Unity 8 on your desktop
49===============================
47===============================
50
48
@@ -73,6 +71,7 @@ Notes
73 - Create an EDS address book
71 - Create an EDS address book
74 - Populate the address book with sample data
72 - Populate the address book with sample data
75
73
74+
76Running Unity 8 on devices
75Running Unity 8 on devices
77==========================
76==========================
78- Ubuntu Touch builds are currently only available in 13.10 flavour
77- Ubuntu Touch builds are currently only available in 13.10 flavour
@@ -91,7 +90,6 @@ $ cd ~/unity/trunk
91$ ./run_on_device --setup
90$ ./run_on_device --setup
92 this will:
91 this will:
93 - install your public SSH key on the device
92 - install your public SSH key on the device
94− - add ppa:canonical-qt5-edgers/qt5-proper and ppa:phablet-team
95 - install the needed dependencies
93 - install the needed dependencies
96
94
97$ ./run_on_device
95$ ./run_on_device
@@ -109,6 +107,7 @@ $ ./run_on_device -p OR -k
109Notes
107Notes
110-----
108-----
111- using adb over TCP has some advantages, Google will be of help here
109- using adb over TCP has some advantages, Google will be of help here
110+ - NOTE: this is not yet available for flipped images
112 - TL;DR: `adb tcpip 5555; adb connect $your_device_ip`
111 - TL;DR: `adb tcpip 5555; adb connect $your_device_ip`
113 - you can persist the above via `adb shell setprop persist.adb.tcp.port 5555`
112 - you can persist the above via `adb shell setprop persist.adb.tcp.port 5555`
114 - it's unsafe - anyone can connect to your device
113 - it's unsafe - anyone can connect to your device
build+1−3
@@ -36,9 +36,7 @@ BUILD_TYPE="debug"
36[ $# -eq 1 ] && BUILD_TYPE="$1"
36[ $# -eq 1 ] && BUILD_TYPE="$1"
37
37
38install_dependencies() {
38install_dependencies() {
39− [ -f /etc/apt/sources.list.d/phablet-team-desktop-deps-${DISTRIB_CODENAME}.list ] || sudo add-apt-repository ppa:phablet-team/desktop-deps || exit 1
39+ [ -f /etc/apt/sources.list.d/ubuntu-unity-next-${DISTRIB_CODENAME}.list ] || sudo add-apt-repository ppa:ubuntu-unity/next || exit 1
40− [ -f /etc/apt/sources.list.d/canonical-qt5-edgers-qt5-proper-${DISTRIB_CODENAME}.list ] || sudo add-apt-repository ppa:canonical-qt5-edgers/qt5-proper || exit 2;
41− [ -f /etc/apt/sources.list.d/ubuntu-sdk-team-ppa-${DISTRIB_CODENAME}.list ] || sudo add-apt-repository ppa:ubuntu-sdk-team/ppa || exit 3
42 sudo apt-get update || exit 4
40 sudo apt-get update || exit 4
43 echo "Installing Unity 8 dependencies.."
41 echo "Installing Unity 8 dependencies.."
44 sudo apt-get install devscripts \
42 sudo apt-get install devscripts \
run_on_device+1−3
@@ -65,11 +65,9 @@ setup_adb_forwarding() {
65}
65}
66
66
67install_dependencies() {
67install_dependencies() {
68+ exec_with_adb apt-get update
68 exec_with_adb apt-get -y install openssh-server
69 exec_with_adb apt-get -y install openssh-server
69 exec_with_ssh $SUDO apt-get -y install build-essential rsync bzr ccache gdb ninja-build devscripts equivs
70 exec_with_ssh $SUDO apt-get -y install build-essential rsync bzr ccache gdb ninja-build devscripts equivs
70− exec_with_ssh $SUDO add-apt-repository -y ppa:canonical-qt5-edgers/qt5-proper
71− exec_with_ssh $SUDO add-apt-repository -s -y ppa:phablet-team/ppa
72− exec_with_ssh $SUDO apt-get update
73}
71}
74
72
75sync_code() {
73sync_code() {