mirror of
https://github.com/riegera2412/UVtools.git
synced 2026-07-08 17:42:31 +02:00
6dc26f7434
- **File formats:**
- (Add) Property: DisplayTotalOnTime
- (Add) Property: DisplayTotalOffTime
- (Add) SL1File Property: high_viscosity_tilt_time
- **Tools**
- **I printed this file**
- (Add) Display on time for the print information
- (Improvement) Labels on numeric box
- (Improvement) Show print time label formatted as hh:mm:ss
- **PCB Exposure:**
- (Improvement) Increase "Exposure time" maximum from 200s to 1000s (#592)
- (Fix) Set `BottomLightHeight` to 0
- (Fix) Set `TransitionLayerCount` to 0
- **Issues:**
- (Improvement) Overhang detection by using a dynamic cross kernel
- (Improvement) Bring back the discard logic of "false-positive" islands based on overhang detection but improve the threshold of the detection to be safer (#591, #591)
- **PrusaSlicer:**
- (Change) Elegoo Mars 2 to use file version 4
- (Change) Elegoo Mars 2 Pro to use file version 4
- (Add) Status bar: On and Off time (hh:mm:ss) as tooltip in the Print time label
- (Improvement) When any of libcvextern dependencies are missing, it try to show the missing libraries in the error message (Linux only)
- (Improvement) Auto-upgrade procedure for non-Windows systems
- (Improvement) macOS arm64 (M1/M2) can now run natively if installed via the auto installer script
- (Fix) Error on Mat cache manager when file have only one layer
- (Fix) Suggestion "Transition layer count" shows as never applied when using with file formats that use in-firmware transition layers
- (Upgrade) openCV from 4.5.4 to 4.6.0
- Custom library is now built to strip unused dependencies and reduce library size
- (Remove) arch and rhel packages in favor of a generic linux
56 lines
1.9 KiB
Bash
56 lines
1.9 KiB
Bash
#!/bin/bash
|
|
#
|
|
# Script to install the dependencies in order to run the UVtools
|
|
# Can be run outside UVtools and as standalone script
|
|
# Then run this script
|
|
# usage 1: sudo ./install-dependencies.sh
|
|
#
|
|
|
|
echo "Script to install the dependencies in order to run the UVtools"
|
|
|
|
if [ $EUID -ne 0 ]; then
|
|
echo "This script must be run as root"
|
|
exit 1
|
|
fi
|
|
|
|
testcmd() { command -v "$1" &> /dev/null; }
|
|
|
|
arch="$(uname -m)"
|
|
osVariant=""
|
|
|
|
if [ "$arch" != "x86_64" -a "$arch" != "arm64" ]; then
|
|
echo "Error: Unsupported host arch $arch"
|
|
exit -1
|
|
fi
|
|
|
|
#echo "- Detecting OS"
|
|
if [ "${OSTYPE:0:6}" == "darwin" ]; then
|
|
osVariant="macOS"
|
|
#/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
|
|
#brew analytics off
|
|
#brew install git cmake mono-libgdiplus
|
|
#brew install --cask dotnet
|
|
elif testcmd apt-get; then
|
|
osVariant="debian"
|
|
apt update
|
|
apt install -y libdc1394-22 libopenexr24
|
|
apt install -y libdc1394-25 libopenexr25
|
|
apt install -y libjpeg-dev libpng-dev libgeotiff-dev libgeotiff5 libavcodec-dev libavformat-dev libswscale-dev libtbb-dev libgl1-mesa-dev libgdiplus
|
|
# mini only requires: libgdiplus libgeotiff-dev libgeotiff5
|
|
elif testcmd pacman; then
|
|
osVariant="arch"
|
|
pacman -Syu
|
|
pacman -S openjpeg2 libjpeg-turbo libpng libgeotiff libdc1394 ffmpeg openexr tbb libgdiplus
|
|
elif testcmd dnf; then
|
|
osVariant="rhel"
|
|
dnf update -y
|
|
dnf install -y https://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm
|
|
dnf install -y https://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm
|
|
dnf install -y libjpeg-devel libjpeg-turbo-devel libpng-devel libgeotiff-devel libdc1394-devel ffmpeg-devel tbb-devel mesa-libGL libgdiplus
|
|
else
|
|
echo "Error: Base operative system / package manager not identified, nothing was installed"
|
|
exit -1
|
|
fi
|
|
|
|
echo "Completed: You can now run UVtools"
|