Skip to content

Commit

Permalink
fixed jamba.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
ypujante committed May 19, 2019
1 parent 27198f1 commit 01205b3
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 15 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,9 @@ Documentation

Release Notes
-------------
### 2019-05-19 - `v3.2.1`
* fixed `jamba.sh` script to handle filename with white spaces and install audio unit before validation (validation tool unfortunately works from an installed component, not a file...)

### 2019-05-19 - `v3.2.0`
* added audio unit validation to `jamba.sh` script (`jamba.sh validate-au`) which runs the `auvaltool` utility on the audio unit plugin
* added switch container view to handle tab like switching (check `Views::SwitchContainerView`)
Expand Down
2 changes: 1 addition & 1 deletion jamba.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ set(JAMBA_ROOT ${CMAKE_CURRENT_LIST_DIR})
#-------------------------------------------------------------------------------
set(JAMBA_MAJOR_VERSION 3)
set(JAMBA_MINOR_VERSION 2)
set(JAMBA_PATCH_VERSION 0)
set(JAMBA_PATCH_VERSION 1)
execute_process(COMMAND git describe --long --dirty --abbrev=10 --tags
RESULT_VARIABLE result
OUTPUT_VARIABLE JAMBA_GIT_VERSION
Expand Down
29 changes: 19 additions & 10 deletions scripts/jamba_multi.sh.in
Original file line number Diff line number Diff line change
Expand Up @@ -119,13 +119,22 @@ validate()
validate_au()
{
if [ "${JAMBA_ENABLE_AUDIO_UNIT}" == "ON" ]; then
build_au
install_au

AU_BUILD_COMPONENT="VST3/${BUILD_CONFIG}/${BUILD_TARGET}_au.component"
AU_PLIST_FILE="$AU_BUILD_COMPONENT/Contents/Info.plist"
AU_TYPE=`/usr/libexec/PlistBuddy -c "Print :AudioComponents:0:type" "${AU_PLIST_FILE}"`
AU_SUBTYPE=`/usr/libexec/PlistBuddy -c "Print :AudioComponents:0:subtype" "${AU_PLIST_FILE}"`
AU_MANUFACTURER=`/usr/libexec/PlistBuddy -c "Print :AudioComponents:0:manufacturer" "${AU_PLIST_FILE}"`
if [ -z "$DRY_RUN" ]; then
AU_TYPE=`/usr/libexec/PlistBuddy -c "Print :AudioComponents:0:type" "${AU_PLIST_FILE}"`
AU_SUBTYPE=`/usr/libexec/PlistBuddy -c "Print :AudioComponents:0:subtype" "${AU_PLIST_FILE}"`
AU_MANUFACTURER=`/usr/libexec/PlistBuddy -c "Print :AudioComponents:0:manufacturer" "${AU_PLIST_FILE}"`
else
${DRY_RUN} AU_TYPE=/usr/libexec/PlistBuddy -c "Print :AudioComponents:0:type" "${AU_PLIST_FILE}"
${DRY_RUN} AU_SUBTYPE=/usr/libexec/PlistBuddy -c "Print :AudioComponents:0:subtype" "${AU_PLIST_FILE}"
${DRY_RUN} AU_MANUFACTURER=/usr/libexec/PlistBuddy -c "Print :AudioComponents:0:manufacturer" "${AU_PLIST_FILE}"
AU_TYPE="<computed AU_TYE>"
AU_SUBTYPE="<computed AU_SUBTYPE>"
AU_MANUFACTURER="<computed AU_MANUFACTURER>"
fi
${DRY_RUN} /usr/bin/auvaltool -v $AU_TYPE $AU_SUBTYPE $AU_MANUFACTURER
fi
}
Expand All @@ -151,13 +160,13 @@ install()
if [ "${BUILD_CONFIG}" == "Release" ]; then
FILENAME=${RELEASE_FILENAME}
fi
${DRY_RUN} rm -rf ~/Library/Audio/Plug-Ins/VST3/${FILENAME}.vst3
${DRY_RUN} cp -r VST3/${BUILD_CONFIG}/${BUILD_TARGET}.vst3 ~/Library/Audio/Plug-Ins/VST3/${FILENAME}.vst3
${DRY_RUN} rm -rf "$HOME/Library/Audio/Plug-Ins/VST3/${FILENAME}.vst3"
${DRY_RUN} cp -r "VST3/${BUILD_CONFIG}/${BUILD_TARGET}.vst3" "$HOME/Library/Audio/Plug-Ins/VST3/${FILENAME}.vst3"
echo "VST3 plugin installed under ~/Library/Audio/Plug-Ins/VST3/${FILENAME}.vst3"

if [ "${JAMBA_ENABLE_VST2}" == "ON" ]; then
${DRY_RUN} rm -rf ~/Library/Audio/Plug-Ins/VST/${FILENAME}.vst
${DRY_RUN} cp -r VST3/${BUILD_CONFIG}/${BUILD_TARGET}.vst3 ~/Library/Audio/Plug-Ins/VST/${FILENAME}.vst
${DRY_RUN} rm -rf "$HOME/Library/Audio/Plug-Ins/VST/${FILENAME}.vst"
${DRY_RUN} cp -r "VST3/${BUILD_CONFIG}/${BUILD_TARGET}.vst3" "$HOME/Library/Audio/Plug-Ins/VST/${FILENAME}.vst"
echo "VST2 plugin installed under ~/Library/Audio/Plug-Ins/VST/${FILENAME}.vst"
fi
}
Expand All @@ -174,8 +183,8 @@ install_au()
if [ "${BUILD_CONFIG}" == "Release" ]; then
FILENAME=${RELEASE_FILENAME}
fi
${DRY_RUN} rm -rf ~/Library/Audio/Plug-Ins/Components/${FILENAME}.component
${DRY_RUN} cp -r VST3/${BUILD_CONFIG}/${BUILD_TARGET}_au.component ~/Library/Audio/Plug-Ins/Components/${FILENAME}.component
${DRY_RUN} rm -rf "$HOME/Library/Audio/Plug-Ins/Components/${FILENAME}.component"
${DRY_RUN} cp -r "VST3/${BUILD_CONFIG}/${BUILD_TARGET}_au.component" "$HOME/Library/Audio/Plug-Ins/Components/${FILENAME}.component"
echo "Audio Unit plugin installed under ~/Library/Audio/Plug-Ins/Components/${FILENAME}.component"
fi
}
Expand Down
8 changes: 4 additions & 4 deletions scripts/jamba_single.sh.in
Original file line number Diff line number Diff line change
Expand Up @@ -118,13 +118,13 @@ install()
if [ "${BUILD_CONFIG}" == "Release" ]; then
FILENAME=${RELEASE_FILENAME}
fi
${DRY_RUN} rm -rf ~/Library/Audio/Plug-Ins/VST3/${FILENAME}.vst3
${DRY_RUN} cp -r VST3/${BUILD_TARGET}.vst3 ~/Library/Audio/Plug-Ins/VST3/${FILENAME}.vst3
${DRY_RUN} rm -rf "$HOME/Library/Audio/Plug-Ins/VST3/${FILENAME}.vst3"
${DRY_RUN} cp -r "VST3/${BUILD_TARGET}.vst3" "$HOME/Library/Audio/Plug-Ins/VST3/${FILENAME}.vst3"
echo "VST3 plugin installed under ~/Library/Audio/Plug-Ins/VST3/${FILENAME}.vst3"

if [ "${JAMBA_ENABLE_VST2}" == "ON" ]; then
${DRY_RUN} rm -rf ~/Library/Audio/Plug-Ins/VST/${FILENAME}.vst
${DRY_RUN} cp -r VST3/${BUILD_TARGET}.vst3 ~/Library/Audio/Plug-Ins/VST/${FILENAME}.vst
${DRY_RUN} rm -rf "$HOME/Library/Audio/Plug-Ins/VST/${FILENAME}.vst"
${DRY_RUN} cp -r "VST3/${BUILD_TARGET}.vst3" "$HOME/Library/Audio/Plug-Ins/VST/${FILENAME}.vst"
echo "VST2 plugin installed under ~/Library/Audio/Plug-Ins/VST/${FILENAME}.vst"
fi
}
Expand Down

0 comments on commit 01205b3

Please sign in to comment.