mirror of
https://github.com/MiSTer-devel/Distribution_MiSTer.git
synced 2026-05-24 03:03:20 +00:00
Fixing Atari800 and Atari5200 wrong categories.
This commit is contained in:
committed by
GitHub
parent
419226e1af
commit
37ba7474e2
33
.github/update_distribution.sh
vendored
33
.github/update_distribution.sh
vendored
@@ -137,6 +137,10 @@ process_url() {
|
||||
"user-content-fonts") INSTALLER=install_fonts ;;
|
||||
*) INSTALLER=install_other_core ;;
|
||||
esac
|
||||
|
||||
if [[ "${URL}" =~ Atari800 ]] ; then
|
||||
INSTALLER=install_atari800
|
||||
fi
|
||||
|
||||
${INSTALLER} "${TMP_FOLDER}" "${TARGET_DIR}" "${CATEGORY}"
|
||||
|
||||
@@ -270,6 +274,35 @@ install_other_core() {
|
||||
done
|
||||
}
|
||||
|
||||
install_atari800() {
|
||||
local TMP_FOLDER="${1}"
|
||||
local TARGET_DIR="${2}"
|
||||
local CATEGORY="${3}"
|
||||
local IFS=$'\n'
|
||||
|
||||
local NAME=
|
||||
case "${CATEGORY}" in
|
||||
"_Computer") NAME="Atari800" ;;
|
||||
"_Console") NAME="Atari5200" ;;
|
||||
*)
|
||||
echo "Could not install Atari 800 core."
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
|
||||
for bin in $(files_with_stripped_date "${TMP_FOLDER}/releases" | grep "${NAME}" | uniq) ; do
|
||||
|
||||
get_latest_release "${TMP_FOLDER}" "${bin}"
|
||||
local LAST_RELEASE_FILE="${GET_LATEST_RELEASE_RET}"
|
||||
|
||||
if is_not_rbf_release "${LAST_RELEASE_FILE}" ; then
|
||||
continue
|
||||
fi
|
||||
|
||||
copy_file "${TMP_FOLDER}/releases/${LAST_RELEASE_FILE}" "${TARGET_DIR}/${CATEGORY}/${LAST_RELEASE_FILE}"
|
||||
done
|
||||
}
|
||||
|
||||
install_main_binary() {
|
||||
local TMP_FOLDER="${1}"
|
||||
local TARGET_DIR="${2}"
|
||||
|
||||
Reference in New Issue
Block a user