Skip to content

Commit

Permalink
Add workaround for Catalina
Browse files Browse the repository at this point in the history
  • Loading branch information
skastr0 committed Nov 27, 2019
1 parent 1e491c6 commit a16654d
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions vendor_skins/Evercast/cmake/osxbundle/obslaunch.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
#!/bin/sh
cd "$(dirname "$0")"
cd ../Resources/bin
exec ./ebs "$@"
# use argument 1 as the version or get it from sw_vers
os_ver=$(sw_vers -productVersion)

if [[ "$os_ver" == 10.15.* ]]; then
echo "macOS Catalina"
osascript -e "tell app \"Terminal\" to do script \"cd /Applications/EBS.app/Contents/Resources/bin && ./ebs\""
else
cd "$(dirname "$0")"
cd ../Resources/bin
exec ./ebs "$@"
fi

1 comment on commit a16654d

@agouaillard-cosmo
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it worth a PR against the main repo?

Please sign in to comment.