#!/usr/bin/env bash

# omarchy:summary=Point at DaVinci Resolve, which only Blackmagic's registration-gated installer provides

# Based: no package, cask or unattended download exists, so this row says
# where the installer is and stops; a Resolve already on disk is reported.

set -eo pipefail

if [[ -d "/Applications/DaVinci Resolve/DaVinci Resolve.app" || -d "/Applications/DaVinci Resolve.app" || -x /opt/resolve/bin/resolve ]]; then
  echo "DaVinci Resolve is installed"
  exit 0
fi

echo "DaVinci Resolve is a registration-gated download from Blackmagic; nothing installs unattended."
echo "Get it at https://www.blackmagicdesign.com/products/davinciresolve"
