Created
February 3, 2018 05:18
-
-
Save zrnsm/ebde39f641ed9c2df4d1dc3f9b3b4fe7 to your computer and use it in GitHub Desktop.
Fetch and build all available VCV Rack source 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
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