Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
letmaik committed Feb 8, 2024
1 parent 643aeeb commit 1bca5cf
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions .github/scripts/install-macos-obs-virtual-cam.sh
Original file line number Diff line number Diff line change
@@ -1,22 +1,24 @@
#!/bin/bash
set -e -x

VERSION="28.0.2"

if [[ "$ARCH" == "arm64" ]]; then
echo "arm64 not supported for live testing"
exit 0
ARCH_MOUNT="Apple"
else
ARCH_MOUNT="Intel"
fi

VERSION="28.0.2"

DMG_FILENAME="obs-studio-${VERSION}-macos-x86_64.dmg"
DMG_FILENAME="obs-studio-${VERSION}-macos-${ARCH}.dmg"
DMG_URL="https://cdn-fastly.obsproject.com/downloads/${DMG_FILENAME}"
MOUNT_PATH="/Volumes/OBS-${VERSION}-macOS-Intel"
MOUNT_PATH="/Volumes/OBS-${VERSION}-macOS-${ARCH_MOUNT}"
INSTALL_PATH="/Library/CoreMediaIO/Plug-Ins/DAL"

sudo mkdir -p "${INSTALL_PATH}"

curl -L --retry 3 "${DMG_URL}" -o "${DMG_FILENAME}"

sudo hdiutil attach "${DMG_FILENAME}"
ls -l "/Volumes"
sudo cp -r "${MOUNT_PATH}/OBS.app/Contents/resources/obs-mac-virtualcam.plugin" "${INSTALL_PATH}"
sudo hdiutil unmount "${MOUNT_PATH}" -force

0 comments on commit 1bca5cf

Please sign in to comment.