Skip to content

Commit

Permalink
Add firefox.sh (see: tuna/issues#2016)
Browse files Browse the repository at this point in the history
Signed-off-by: Harry Chen <[email protected]>
  • Loading branch information
Harry-Chen committed Aug 24, 2024
1 parent 642ef8b commit 6c89639
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions firefox.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#!/bin/bash
set -e
set -o pipefail

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

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

YUM_PATH="${BASE_PATH}/yum"
APT_PATH="${BASE_PATH}/apt"

# =================== APT repos ===============================
# see: https://packages.mozilla.org/apt/dists/mozilla/InRelease
"$apt_sync" --delete "${BASE_URL/}/apt" mozilla main amd64,i386,arm64 "${APT_PATH}"
echo "APT finished"

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

0 comments on commit 6c89639

Please sign in to comment.