first try

This commit is contained in:
Alex Birch 2018-03-11 00:48:28 +00:00
parent 1a81649e73
commit 6363ec116d
No known key found for this signature in database
GPG Key ID: 305EB1F98D44ACBA

View File

@ -27,13 +27,12 @@ PLUGINNAME="juicysfplugin"
declare -a BUILDS=("Debug" "Release") declare -a BUILDS=("Debug" "Release")
# .app is a special case which has a Plugins folder inside it, containing a .appex Plugin # .app is a special case which has a Plugins folder inside it, containing a .appex Plugin
declare -a TARGETS=(\ declare -a TARGETS=("app" \
".app"\ "appex" \
".appex"\ "component" \
".component"\ "vst" \
".vst"\ "vst3" \
".vst3"\ "app/Contents/PlugIns/$PLUGINNAME.appex"
".app/Contents/PlugIns/$PLUGINNAME.appex"
) )
echo "Known builds: ${BUILDS[*]}" echo "Known builds: ${BUILDS[*]}"
@ -59,7 +58,7 @@ do
echo "Found $i build subdirectory. Iterating over targets." echo "Found $i build subdirectory. Iterating over targets."
for j in "${TARGETS[@]}" for j in "${TARGETS[@]}"
do do
CONTENTS="$BUILD/$PLUGINNAME$j/Contents" CONTENTS="$BUILD/$PLUGINNAME.$j/Contents"
BINARY="$CONTENTS/MacOS/$PLUGINNAME" BINARY="$CONTENTS/MacOS/$PLUGINNAME"
if [ -f "$BINARY" ]; then if [ -f "$BINARY" ]; then