Skip to content

Instantly share code, notes, and snippets.

@Chaircrusher
Last active March 29, 2018 20:31
Show Gist options
  • Save Chaircrusher/c3cf961b2b6c95a0f9346ad03bb7813f to your computer and use it in GitHub Desktop.
Save Chaircrusher/c3cf961b2b6c95a0f9346ad03bb7813f to your computer and use it in GitHub Desktop.
Script To Grab VCVRack binary plugins
# check for the community repo locally
# USAGE grabPlugins.sh <target>
# Where <target> is one of win, lin, or mac
if [ $# -gt 0 ]
then
platform="${1}"
else
platform=lin
fi
if [ -d "community" ]; then
pushd community
# discard any changes
git reset HEAD --hard
# update the community repo if it exists
git pull
popd
else
# community repo does not exist so pull it down
git clone https://github.com/VCVRack/community
fi
for gitPlugin in $(cat community/plugins/*.json | grep "${platform}.zip" | awk -F'"' '{ print $4}')
do
zipname="$(echo $gitPlugin | sed -e 's@.*/@@' | sed -e 's/\?raw=true//')"
curl -s -L "${gitPlugin}" -o "${zipname}"
if [[ -f ${zipname} ]]
then
unzip -q -o "${zipname}"
rm "${zipname}"
fi
done
if [ "${platform}" != "mac" ]
then
rm -fr __MACOSX
fi
@pgatt
Copy link

pgatt commented Mar 29, 2018

Please ignore if you don't feel like answering it, but just wondering if this will pull down 0.60 plugins yet?

I'm getting cat: community/plugins/*.json: No such file or directory

I know 0.60 was just released, so no stress if it's too soon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment