2
0

termux.sh 437 B

12345678910111213141516
  1. #!/bin/bash
  2. set -e
  3. _here=`dirname $(realpath $0)`
  4. . ${_here}/helpers/apt-download
  5. [ -z "${LOADED_APT_DOWNLOAD}" ] && (echo "failed to load apt-download"; exit 1)
  6. BASE_PATH="${TUNASYNC_WORKING_DIR}"
  7. base_url="http://apt.termux.com"
  8. ARCHES=("aarch64" "all" "arm" "i686")
  9. for arch in ${ARCHES[@]}; do
  10. echo "start syncing: ${arch}"
  11. apt-download-binary "${base_url}" "stable" "main" "${arch}" "${BASE_PATH}" || true
  12. done
  13. echo "finished"