mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2026-03-17 16:55:41 -06:00
Merge 3ae70915f5 into 494601eea5
This commit is contained in:
commit
4bdf7adcec
2 changed files with 54 additions and 0 deletions
|
|
@ -146,6 +146,8 @@ DISTRIBUTION_LIKE=$(awk -F= '/^ID_LIKE=/ {print $2}' /etc/os-release | tr -d '"'
|
|||
# Check for direct distribution match to Ubuntu/Debian
|
||||
if [ "${DISTRIBUTION}" == "ubuntu" ] || [ "${DISTRIBUTION}" == "linuxmint" ] ; then
|
||||
DISTRIBUTION="debian"
|
||||
elif [ "${DISTRIBUTION}" == "opensuse-tumbleweed" ] ; then
|
||||
DISTRIBUTION="opensuse-tumbleweed"
|
||||
# Check if distribution is Debian/Ubuntu-like based on ID_LIKE
|
||||
elif [[ "${DISTRIBUTION_LIKE}" == *"debian"* ]] || [[ "${DISTRIBUTION_LIKE}" == *"ubuntu"* ]] ; then
|
||||
DISTRIBUTION="debian"
|
||||
|
|
|
|||
52
scripts/linux.d/opensuse-tumbleweed
Normal file
52
scripts/linux.d/opensuse-tumbleweed
Normal file
|
|
@ -0,0 +1,52 @@
|
|||
#!/bin/bash
|
||||
# these are the openSUSE Tumbleweed Linux specific build functions
|
||||
|
||||
# Additional Dev packages for OrcaSlicer
|
||||
export REQUIRED_DEV_PACKAGES=(
|
||||
autoconf
|
||||
automake
|
||||
cmake
|
||||
curl
|
||||
dbus-1
|
||||
eglexternalplatform-devel
|
||||
kf6-extra-cmake-modules
|
||||
file
|
||||
gettext-runtime
|
||||
git
|
||||
glew-devel
|
||||
gstreamer-devel
|
||||
gstreamermm-devel
|
||||
gtk3-devel
|
||||
libcurl-devel
|
||||
libmspack-devel
|
||||
libopenssl-devel
|
||||
libquadmath-devel
|
||||
libsecret-devel
|
||||
libspnav-devel
|
||||
libtool
|
||||
nanum-fonts
|
||||
ninja
|
||||
texinfo
|
||||
webkit2gtk3-minibrowser
|
||||
webkit2gtk3-devel
|
||||
wget
|
||||
wayland-protocols-devel
|
||||
)
|
||||
|
||||
if [[ -n "$UPDATE_LIB" ]]
|
||||
then
|
||||
echo -n -e "Updating linux ...\n"
|
||||
NEEDED_PKGS=()
|
||||
for PKG in "${REQUIRED_DEV_PACKAGES[@]}"; do
|
||||
sudo zypper se -ix "${PKG}" > /dev/null || NEEDED_PKGS+=("${PKG}")
|
||||
done
|
||||
|
||||
if [[ "${#NEEDED_PKGS[*]}" -gt 0 ]]; then
|
||||
sudo zypper refresh && sudo zypper in -y "${NEEDED_PKGS[@]}"
|
||||
fi
|
||||
echo -e "done\n"
|
||||
exit 0
|
||||
fi
|
||||
|
||||
export FOUND_GTK3_DEV
|
||||
FOUND_GTK3_DEV=$(sudo zypper se -ix gtk3-devel)
|
||||
Loading…
Add table
Add a link
Reference in a new issue