blob: 59a3456bcf1c141e87a32664a64ad029b0925202 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
#!/bin/bash
#https://wiki.mozilla.org/Mobile/Fennec/Android/Detailed_build_instructions#Linux
set -e
set -x
apt-get -q -y --force-yes install openjdk-7-jdk ant mercurial ccache
apt-get -q -y --force-yes build-dep firefox
WD=android-build
rm -rf $WD
mkdir $WD
cd $WD
#wget https://dl.google.com/android/ndk/android-ndk-r8e-linux-x86.tar.bz2
#tar -xjf android-ndk-r8e-linux-x86.tar.bz2
wget http://dl.google.com/android/ndk/android-ndk-r10e-linux-x86.bin
chmod 755 android-ndk-r10e-linux-x86.bin
./android-ndk-r10e-linux-x86.bin
wget http://dl.google.com/android/android-sdk_r24.3.3-linux.tgz
tar -xzf android-sdk_r24.3.3-linux.tgz
while true; do echo y; sleep 1; done |./android-sdk-linux/tools/android update sdk -u
#while true; do echo y; sleep 1; done |./android-sdk-linux/tools/android update adb
echo export PATH=$PATH:$PWD/android-sdk-linux/tools:$PWD/android-sdk-linux/build-tools:$PWD/android-sdk-linux/platform-tools
export PATH=$PATH:$PWD/android-sdk-linux/tools:$PWD/android-sdk-linux/build-tools:$PWD/android-sdk-linux/platform-tools
ln -s $PWD/android-sdk-linux/build_tools $PWD/android-sdk-linux/build-tools
pkill -9 adb || true
echo DONE
|