Add support for AOSC OS (#2390)

This commit is contained in:
xtex 2024-08-26 12:28:21 +00:00 committed by GitHub
parent bad16fab71
commit d6505b9b8c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 12 additions and 0 deletions

View File

@ -61,6 +61,15 @@ install_emerge() {
sudo emerge --oneshot --deep --newuse --changed-use --changed-deps dev-lang/python dev-debug/gdb
}
install_oma() {
sudo oma refresh || true
sudo oma install -y gdb gdbserver python-3 glib make glibc-dbg curl
if uname -m | grep -q x86_64; then
sudo oma install -y glibc+32-dbg || true
fi
}
install_pacman() {
read -p "Do you want to do a full system update? (y/n) [n] " answer
# user want to perform a full system upgrade
@ -152,6 +161,9 @@ if linux; then
"freebsd")
install_freebsd
;;
"aosc")
install_oma
;;
*) # we can add more install command for each distros.
echo "\"$distro\" is not supported distro. Will search for 'apt', 'dnf' or 'pacman' package managers."
if hash apt; then