scripts,ci(*): use termux.dev instead of termux.org
We are now mainly promoting and using termux.dev, so lets switch all the urls.
This commit is contained in:
parent
138eb1337c
commit
6cf9f35fac
|
@ -28,7 +28,7 @@ jobs:
|
||||||
GIT_PUSH_PACKAGES: "true"
|
GIT_PUSH_PACKAGES: "true"
|
||||||
run: |
|
run: |
|
||||||
git config --global user.name "Termux Github Actions"
|
git config --global user.name "Termux Github Actions"
|
||||||
git config --global user.email "contact@termux.org"
|
git config --global user.email "contact@termux.dev"
|
||||||
|
|
||||||
if [ "${{ github.event_name }}" == "workflow_dispatch" ]; then
|
if [ "${{ github.event_name }}" == "workflow_dispatch" ]; then
|
||||||
./scripts/bin/update-packages ${{ github.event.inputs.packages }}
|
./scripts/bin/update-packages ${{ github.event.inputs.packages }}
|
||||||
|
|
|
@ -45,9 +45,9 @@ termux_step_setup_variables() {
|
||||||
: "${TERMUX_PKG_MAINTAINER:="default"}"
|
: "${TERMUX_PKG_MAINTAINER:="default"}"
|
||||||
|
|
||||||
TERMUX_REPO_URL=(
|
TERMUX_REPO_URL=(
|
||||||
https://packages-cf.termux.org/apt/termux-main
|
https://packages-cf.termux.dev/apt/termux-main
|
||||||
https://packages-cf.termux.org/apt/termux-root
|
https://packages-cf.termux.dev/apt/termux-root
|
||||||
https://packages-cf.termux.org/apt/termux-x11
|
https://packages-cf.termux.dev/apt/termux-x11
|
||||||
)
|
)
|
||||||
|
|
||||||
TERMUX_REPO_DISTRIBUTION=(
|
TERMUX_REPO_DISTRIBUTION=(
|
||||||
|
|
|
@ -29,6 +29,6 @@ def check_manifest(arch, manifest):
|
||||||
current_package[parts[0].strip()] = parts[1].strip()
|
current_package[parts[0].strip()] = parts[1].strip()
|
||||||
|
|
||||||
for arch in ['all', 'aarch64', 'arm', 'i686', 'x86_64']:
|
for arch in ['all', 'aarch64', 'arm', 'i686', 'x86_64']:
|
||||||
manifest_url = f'https://termux.org/packages/dists/stable/main/binary-{arch}/Packages'
|
manifest_url = f'https://termux.dev/packages/dists/stable/main/binary-{arch}/Packages'
|
||||||
with urllib.request.urlopen(manifest_url) as manifest:
|
with urllib.request.urlopen(manifest_url) as manifest:
|
||||||
check_manifest(arch, manifest)
|
check_manifest(arch, manifest)
|
||||||
|
|
|
@ -23,7 +23,7 @@ TERMUX_PACKAGE_MANAGERS=("apt" "pacman")
|
||||||
|
|
||||||
# The repository base urls mapping for package managers.
|
# The repository base urls mapping for package managers.
|
||||||
declare -A REPO_BASE_URLS=(
|
declare -A REPO_BASE_URLS=(
|
||||||
["apt"]="https://packages-cf.termux.org/apt/termux-main"
|
["apt"]="https://packages-cf.termux.dev/apt/termux-main"
|
||||||
["pacman"]="https://s3.amazonaws.com/termux-main.pacman"
|
["pacman"]="https://s3.amazonaws.com/termux-main.pacman"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue