Skip to content

Commit c0dc0de

Browse files
committed
Add xanmod scripts
Signed-off-by: Shengqi Chen <harry-chen@outlook.com>
1 parent fe9a046 commit c0dc0de

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

xanmod.sh

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
#!/bin/bash
2+
set -e
3+
set -o pipefail
4+
5+
_here=`dirname $(realpath $0)`
6+
apt_sync="${_here}/apt-sync.py"
7+
8+
BASE_PATH="${TUNASYNC_WORKING_DIR}"
9+
BASE_URL="${TUNASYNC_UPSTREAM_URL:-"https://deb.xanmod.org/"}"
10+
export REPO_SIZE_FILE=/tmp/reposize.$RANDOM
11+
12+
APT_PATH="${BASE_PATH}/apt"
13+
14+
# =================== APT repos ===============================
15+
# see: https://deb.xanmod.org/dists/releases/InRelease
16+
"$apt_sync" --delete "${BASE_URL/}" releases main amd64,i386 "${APT_PATH}"
17+
echo "APT finished"
18+
19+
"${_here}/helpers/size-sum.sh" $REPO_SIZE_FILE --rm

0 commit comments

Comments
 (0)