sunhat/install/optional/app_resolve.sh

28 lines
1.2 KiB
Bash
Raw Permalink Normal View History

2024-06-10 09:23:24 -05:00
# Check for argument
if [ -z "$1" ]; then
2024-06-10 10:24:01 -05:00
echo "No argument supplied. If you have already downloaded the DaVinci Resolve"
echo " zip file, please provide the path to the file as an argument."
2024-06-10 09:23:24 -05:00
read -rp "Press Enter to open the download page..."
xdg-open https://www.blackmagicdesign.com/products/davinciresolve
read -rp "Once the download is finished, press Enter to continue..."
read -rp "Path to zip file: " zip_path
unzip -q "$zip_path" -d ~/Downloads/DaVinci_Resolve
rm -f "$zip_path"
2024-06-10 09:23:24 -05:00
else
unzip -q "$1" -d ~/Downloads/DaVinci_Resolve
rm -f "$1"
2024-06-10 09:23:24 -05:00
fi
2024-06-10 10:24:01 -05:00
if [[ -f ~/Downloads/DaVinci_Resolve ]]; then
chmod +x ~/Downloads/DaVinci_Resolve/*.run
sudo SKIP_PACKAGE_CHECK=1 ~/Downloads/DaVinci_Resolve/*.run
sudo mkdir -p /opt/resolve/libs/disabled-libraries/
sudo mv /opt/resolve/libs/libglib* /opt/resolve/libs/disabled-libraries
sudo mv /opt/resolve/libs/libgio* /opt/resolve/libs/disabled-libraries
sudo mv /opt/resolve/libs/libgmodule* /opt/resolve/libs/disabled-libraries
rm -rf ~/Downloads/DaVinci_Resolve
echo "DaVinci Resolve installed successfully!"
else
echo "Installation failed! Does ~/Downloads/DaVinci_Resolve exist?"
fi
2024-06-10 09:23:24 -05:00