Skip to content

Instantly share code, notes, and snippets.

@zrnsm
Created February 3, 2018 05:18
Show Gist options
  • Save zrnsm/ebde39f641ed9c2df4d1dc3f9b3b4fe7 to your computer and use it in GitHub Desktop.
Save zrnsm/ebde39f641ed9c2df4d1dc3f9b3b4fe7 to your computer and use it in GitHub Desktop.
Fetch and build all available VCV Rack source plugins
import os
import json
os.system('git clone https://github.com/VCVRack/community.git')
plugin_dir = os.path.join(os.getcwd(), 'community', 'plugins')
for plugin_slug_file in os.listdir(plugin_dir):
with open(os.path.join(plugin_dir, plugin_slug_file)) as f:
source_url = json.load(f).get('source')
if source_url:
source_url = source_url.rstrip('/')
if source_url.endswith('.git'):
source_url = source_url[:-4]
os.system('git clone ' + source_url)
os.chdir(source_url.split('/')[-1])
os.system('git submodule update --init --recursive')
os.system('make')
os.chdir('..')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment