mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-12-24 00:28:38 -07:00
Some checks failed
Shellcheck / Shellcheck (push) Has been cancelled
* Shellcheck all shell scripts * Implement Shellcheck's recommendations * Shellcheck the distribution-specific files * Include the distro scripts to trigger action * Fix array usage (hopefully) * Use single-quote string TIL: single quote string in yaml treats everything as literal, but double quote allows backslash escaping. * Make all cmake commands use set+-x dance and fix macos getopts line Make Claude happy getopts has colon after a command which takes an argument --------- Co-authored-by: SoftFever <softfeverever@gmail.com>
52 lines
971 B
Bash
52 lines
971 B
Bash
#!/bin/bash
|
|
export FOUND_GTK3
|
|
FOUND_GTK3=$(rpm -qa | grep -P '^gtk3' || true)
|
|
|
|
REQUIRED_DEV_PACKAGES=(
|
|
autoconf
|
|
automake
|
|
cmake
|
|
dbus-devel
|
|
eglexternalplatform-devel
|
|
extra-cmake-modules
|
|
file
|
|
gcc
|
|
gcc-c++
|
|
gettext
|
|
git
|
|
gstreamer1-devel
|
|
gstreamermm-devel
|
|
gtk3-devel
|
|
libmspack-devel
|
|
libquadmath-devel
|
|
libsecret-devel
|
|
libspnav-devel
|
|
libtool
|
|
m4
|
|
mesa-libGLU-devel
|
|
ninja-build
|
|
openssl-devel
|
|
perl-FindBin
|
|
texinfo
|
|
wayland-protocols-devel
|
|
webkit2gtk4.0-devel
|
|
wget
|
|
libcurl-devel
|
|
)
|
|
|
|
if [[ -n "$UPDATE_LIB" ]]
|
|
then
|
|
NEEDED_PKGS=()
|
|
for PKG in "${REQUIRED_DEV_PACKAGES[@]}"; do
|
|
rpm -q "${PKG}" > /dev/null || NEEDED_PKGS+=("${PKG}")
|
|
done
|
|
|
|
if [[ "${#NEEDED_PKGS[*]}" -gt 0 ]]; then
|
|
sudo dnf install -y "${NEEDED_PKGS[@]}"
|
|
fi
|
|
echo -e "done\n"
|
|
exit 0
|
|
fi
|
|
|
|
export FOUND_GTK3_DEV
|
|
FOUND_GTK3_DEV=$(rpm -qa | grep -P '^gtk3-devel' || true)
|