From d6505b9b8c4a729f129a264109709b3f1a9f0f2e Mon Sep 17 00:00:00 2001 From: xtex Date: Mon, 26 Aug 2024 12:28:21 +0000 Subject: [PATCH] Add support for AOSC OS (#2390) --- setup.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/setup.sh b/setup.sh index d9b7080d..40546787 100755 --- a/setup.sh +++ b/setup.sh @@ -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