install.sh (1309B)
1 #!/usr/bin/env bash 2 set -e 3 set -x 4 5 # Install dependencies 6 apt-get install -y --allow-downgrades \ 7 clang \ 8 cmake \ 9 curl \ 10 default-jdk-headless \ 11 git \ 12 gnupg \ 13 jq \ 14 make \ 15 meson \ 16 unzip \ 17 wget \ 18 zip 19 20 # install Node.js (official) 21 curl -fsSL https://deb.nodesource.com/setup_24.x | bash 22 apt-get install -y nodejs 23 node -v 24 npm -v 25 26 27 # Needed to build wallet-core 28 npm install -g pnpm@11.0.8 29 30 # Install Android SDK Manager 31 wget --no-verbose -O cmdline-tools.zip \ 32 https://dl.google.com/android/repository/commandlinetools-linux-11479570_latest.zip 33 unzip cmdline-tools.zip 34 rm cmdline-tools.zip 35 mkdir -p ${ANDROID_HOME}/cmdline-tools 36 mv cmdline-tools ${ANDROID_HOME}/cmdline-tools/latest 37 38 # Accept all those nasty EULAs 39 mkdir -p ${ANDROID_HOME}/licenses/ 40 printf "\n24333f8a63b6825ea9c5514f83c2829b004d1fee" > ${ANDROID_HOME}/licenses/android-sdk-license 41 42 # Install platform-tools 43 mkdir /root/.android 44 touch /root/.android/repositories.cfg 45 echo y | $ANDROID_HOME/cmdline-tools/latest/bin/sdkmanager "platform-tools" 46 47 # Add $ANDROID_HOME and $ANDROID_SDK_ROOT to PATH 48 # printf 'export PATH=$PATH:%s' $ANDROID_HOME/cmdline-tools/latest/bin > ~/.bashrc 49 printf 'export ANDROID_SDK_ROOT=%s' $ANDROID_HOME >> /etc/environment