From 7fadc40df50f9fc190a9372a3b39691d7330df01 Mon Sep 17 00:00:00 2001 From: P-M Lejon <15982689+pmex@users.noreply.github.com> Date: Thu, 19 Feb 2026 13:45:34 +0100 Subject: [PATCH 1/2] Add NDI Tools --- fragments/labels/nditools.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 fragments/labels/nditools.sh diff --git a/fragments/labels/nditools.sh b/fragments/labels/nditools.sh new file mode 100644 index 000000000..f1fb3ece5 --- /dev/null +++ b/fragments/labels/nditools.sh @@ -0,0 +1,11 @@ +nditools) + name="NDI Tools" + type="pkg" + appCustomVersion(){ + pkgutil --pkg-info com.newtek.NDI-Tools 2>/dev/null | grep "version:" | awk '{print$2}' | awk -F "." '{print$1"."$2"."$3}' + } + downloadURL=$(curl -sIkL $(curl -fsL https://ndi.video/tools/ | grep -E "get.ndi.video|MacOS" | grep -B 1 "MacOS" | grep -o '"https.*"' | sort | tail -1 | sed 's/"//g') | grep -o "https.*pkg") + appNewVersion=$(curl -fsL https://ndi.video/tools/ | grep -o "Version [0-9].*[0-9]" | grep -o "[0-9].*[0-9]" | sort | tail -1) + expectedTeamID="W8U66ET244" + blockingProcesses=( "NDI Access Manager" "NDI Discovery" "NDI Launcher" "NDI Router" "NDI Scan Converter" "NDI Test Patterns" "NDI Video Monitor" "NDI Virtual Input" ) + ;; From 97d747cd6a89642890566f86e99ca0dc88c3cf07 Mon Sep 17 00:00:00 2001 From: P-M Lejon <15982689+pmex@users.noreply.github.com> Date: Mon, 4 May 2026 09:12:01 +0200 Subject: [PATCH 2/2] Changed appCustomVersion from pkginfo to CFBundleShortVersionString --- fragments/labels/nditools.sh | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/fragments/labels/nditools.sh b/fragments/labels/nditools.sh index f1fb3ece5..9dfd7fcab 100644 --- a/fragments/labels/nditools.sh +++ b/fragments/labels/nditools.sh @@ -1,9 +1,7 @@ nditools) name="NDI Tools" type="pkg" - appCustomVersion(){ - pkgutil --pkg-info com.newtek.NDI-Tools 2>/dev/null | grep "version:" | awk '{print$2}' | awk -F "." '{print$1"."$2"."$3}' - } + appCustomVersion(){defaults read "/Applications/NDI Discovery.app/Contents/Info.plist" CFBundleShortVersionString} downloadURL=$(curl -sIkL $(curl -fsL https://ndi.video/tools/ | grep -E "get.ndi.video|MacOS" | grep -B 1 "MacOS" | grep -o '"https.*"' | sort | tail -1 | sed 's/"//g') | grep -o "https.*pkg") appNewVersion=$(curl -fsL https://ndi.video/tools/ | grep -o "Version [0-9].*[0-9]" | grep -o "[0-9].*[0-9]" | sort | tail -1) expectedTeamID="W8U66ET244"