Skip to content

Commit

Permalink
Add xanmod scripts
Browse files Browse the repository at this point in the history
Signed-off-by: Shengqi Chen <[email protected]>
  • Loading branch information
Harry-Chen committed Sep 18, 2024
1 parent fe9a046 commit c0dc0de
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions xanmod.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#!/bin/bash
set -e
set -o pipefail

_here=`dirname $(realpath $0)`
apt_sync="${_here}/apt-sync.py"

BASE_PATH="${TUNASYNC_WORKING_DIR}"
BASE_URL="${TUNASYNC_UPSTREAM_URL:-"https://deb.xanmod.org/"}"
export REPO_SIZE_FILE=/tmp/reposize.$RANDOM

APT_PATH="${BASE_PATH}/apt"

# =================== APT repos ===============================
# see: https://deb.xanmod.org/dists/releases/InRelease
"$apt_sync" --delete "${BASE_URL/}" releases main amd64,i386 "${APT_PATH}"
echo "APT finished"

"${_here}/helpers/size-sum.sh" $REPO_SIZE_FILE --rm

0 comments on commit c0dc0de

Please sign in to comment.