mirror of
https://github.com/oSoWoSo/DistroHopper.git
synced 2026-06-14 17:36:40 +00:00
42 lines
1.7 KiB
Text
42 lines
1.7 KiB
Text
android
|
|
|
|
android 9.0 x86_64: https://mirrors.gigenet.com/OSDN/android-x86/71931/android-x86_64-9.0-r2.iso
|
|
android 9.0 x86: https://mirrors.gigenet.com/OSDN/android-x86/71931/android-x86-9.0-r2.iso
|
|
android 8.1 x86_64: https://mirrors.gigenet.com/OSDN/android-x86/69704/android-x86_64-8.1-r6.iso
|
|
android 8.1 x86: https://mirrors.gigenet.com/OSDN/android-x86/69704/android-x86-8.1-r6.iso
|
|
android 7.1 x86_64: https://mirrors.gigenet.com/OSDN/android-x86/67834/android-x86_64-7.1-r5.iso
|
|
android 7.1 x86: https://mirrors.gigenet.com/OSDN/android-x86/67834/android-x86-7.1-r5.iso
|
|
|
|
# Template file for 'android'
|
|
OSNAME="android"
|
|
PRETTY="Android x86"
|
|
BASEDOF="-"
|
|
DESCRIPTION="Port Android Open Source Project to x86 platform"
|
|
HOMEPAGE="https://www.android-x86.org"
|
|
CREDENTIALS="-"
|
|
|
|
|
|
RELEASES="9.0 8.1 7.1"
|
|
EDITIONS="x86_64 x86"
|
|
|
|
function get_() {
|
|
local HASH=""
|
|
local ISO=""
|
|
local JSON_ALL=""
|
|
local JSON_REL=""
|
|
local URL="https://mirrors.gigenet.com/OSDN/android-x86"
|
|
JSON_ALL=$(web_pipe "https://www.fosshub.com/Android-x86-old.html" | grep "var settings =" | cut -d'=' -f2-)
|
|
JSON_REL=$(echo "${JSON_ALL}" | jq --arg ver "${OS}-${EDITION}-${RELEASE}" 'first(.pool.f[] | select((.n | startswith($ver)) and (.n | endswith(".iso"))))')
|
|
ISO=$(echo "${JSON_REL}" | jq -r .n)
|
|
HASH=$(echo "${JSON_REL}" | jq -r .hash.sha256)
|
|
# Traverse the directories to find the .iso location
|
|
for DIR in $(web_pipe "${URL}" | grep -o -E '[0-9]{5}' | sort -ur); do
|
|
if web_pipe "${URL}/${DIR}" | grep "${ISO}" &>/dev/null; then
|
|
URL="${URL}/${DIR}"
|
|
break
|
|
fi
|
|
done
|
|
echo "${URL}/${ISO} ${HASH}"
|
|
}
|
|
|
|
|