From 4b3c0a016fbe78315f234982d6b503debb7a9168 Mon Sep 17 00:00:00 2001 From: TalenMud Date: Thu, 6 Feb 2025 12:19:17 +0000 Subject: [PATCH] Added support for arch and manjaro --- compile.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/compile.sh b/compile.sh index 9a41d85..edfd24d 100644 --- a/compile.sh +++ b/compile.sh @@ -23,6 +23,8 @@ if [[ "$os_name" == *"Fedora"* ]]; then package_man="dnf" elif [[ $os_name == *"Debian"* ]] || [[ $os_name == *"Ubuntu"* ]] || [[ $os_name == *"Mint"* ]]; then package_man="apt" +elif [[ $os_name == *"Manjaro"* ]] || [[ $os_name == *"Arch"* ]]; then + package_man="pacman" else echo "Unsupported distro! If your distro supports APT or DNF, please manually set os_name='Ubuntu' for apt, or os_name='Fedora' at the top of the file. Copy the appropriate command and replace the 'os_name=' with the proper command. You can also open an issue ticket." echo "Stopped installation! Please remove ~/deps." @@ -34,6 +36,8 @@ if [[ $package_man == "dnf" ]]; then sudo dnf install -y gcc-c++ clang libcxx-devel cmake ninja-build libX11-devel libXcursor-devel libXi-devel mesa-libGL-devel fontconfig-devel git elif [[ $package_man == "apt" ]]; then sudo apt-get install -y g++ clang libc++-dev libc++abi-dev cmake ninja-build libx11-dev libxcursor-dev libxi-dev libgl1-mesa-dev libfontconfig1-dev +elif [[ $package_man == "pacman" ]]; then + sudo pacman -S --needed gcc clang libc++ cmake ninja libx11 libxcursor libxi mesa fontconfig fi # Clone aseprite