Skip to content

Commit

Permalink
Add check for packages on macos install script
Browse files Browse the repository at this point in the history
  • Loading branch information
wtsnz committed Nov 6, 2018
1 parent f8939ff commit 9660a91
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions CI/install-dependencies-macos.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@ done
# Installs a LaunchDaemon under /Library/LaunchDaemons/fr.whitebox.packages.build.dispatcher.plist
# =!= NOTICE =!=

echo "[obs-ios-camera-plugin] Installing Packaging app (might require password due to 'sudo').."
curl -o './Packages.pkg' --retry-connrefused -s --retry-delay 1 'https://s3-us-west-2.amazonaws.com/obs-nightly/Packages.pkg'
sudo installer -pkg ./Packages.pkg -target /
HAS_PACKAGES=$(type packagesbuild 2>/dev/null)

if [ "${HAS_PACKAGES}" = "" ]; then
echo "[obs-ios-camera-plugin] Installing Packaging app (might require password due to 'sudo').."
curl -o './Packages.pkg' --retry-connrefused -s --retry-delay 1 'https://s3-us-west-2.amazonaws.com/obs-nightly/Packages.pkg'
sudo installer -pkg ./Packages.pkg -target /
fi

0 comments on commit 9660a91

Please sign in to comment.