Last active
March 29, 2018 20:31
-
-
Save Chaircrusher/c3cf961b2b6c95a0f9346ad03bb7813f to your computer and use it in GitHub Desktop.
Script To Grab VCVRack binary plugins
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.