parent
af88fdd4fd
commit
b3ea67b7d8
12 changed files with 234 additions and 85 deletions
@ -1 +1 @@ |
|||||||
/usr/share/automake-1.14/COPYING |
/usr/share/automake-1.15/COPYING |
@ -1 +1 @@ |
|||||||
/usr/share/automake-1.14/INSTALL |
/usr/share/automake-1.15/INSTALL |
@ -1,11 +1,22 @@ |
|||||||
packages+=("wheezy:::curl:::npm") |
# if you have android, we need cordova plus more dependencies |
||||||
packages+=("nodejs") |
# so we can build an android app |
||||||
repos+=("Ubuntu:::universe") |
|
||||||
repos+=("wheezy:::'deb http://ftp.is.debian.org/debian wheezy-backports main'") |
|
||||||
commands+=("wheezy:::update-alternatives --install /usr/bin/node nodejs /usr/bin/nodejs 100") |
|
||||||
commands+=("wheezy:::curl https://www.npmjs.com/install.sh | sh") |
|
||||||
commands+=("npm install -g cordova") |
|
||||||
if test -n "${ANDROID_HOME}"; then |
if test -n "${ANDROID_HOME}"; then |
||||||
|
# all this is needed for android through cordova (phonegap) only |
||||||
|
packages+=("wheezy:::curl:::npm") |
||||||
|
packages+=("git nodejs default-jdk libc6-i386 lib32stdc++6 lib32gcc1 lib32ncurses5 lib32z1") |
||||||
|
repos+=("Ubuntu-precise:::'deb http://archive.ubuntu.com precise universe'") |
||||||
|
repos+=("Debian|Ubuntu-precise::::::universe") |
||||||
|
repos+=("wheezy:::'deb http://ftp.is.debian.org/debian wheezy-backports main'") |
||||||
|
commands+=("update-alternatives --install /usr/bin/node nodejs /usr/bin/nodejs 100") |
||||||
|
commands+=("wheezy:::curl https://www.npmjs.com/install.sh | sh") |
||||||
|
commands+=("npm install -g cordova") |
||||||
|
commands+=("chown $(id -u) ${HOME}") |
||||||
|
commands+=("chown -R $(id -u) ${HOME}/.npm") |
||||||
|
commands+=("useradd -d ${HOME} -u $(id -u) $(id -un)") |
||||||
envs+=("-e ANDROID_HOME=${ANDROID_HOME}") |
envs+=("-e ANDROID_HOME=${ANDROID_HOME}") |
||||||
|
envs+=("-e HOME=${HOME}") |
||||||
|
envs+=("-e TERM=xterm") |
||||||
dirs+=("-v ${ANDROID_HOME}:${ANDROID_HOME}:ro") |
dirs+=("-v ${ANDROID_HOME}:${ANDROID_HOME}:ro") |
||||||
|
dirs+=("-v ${HOME}/.gnupg:${HOME}/.gnupg:ro") |
||||||
|
dirs+=("-v ${HOME}/.android:${HOME}/.android:ro") |
||||||
fi |
fi |
||||||
|
Loading…
Reference in new issue