set version arg when creating electron-api.json

This commit is contained in:
Zeke Sikelianos 2017-01-18 11:00:13 -08:00
parent 71512ad244
commit 057fda5352

View file

@ -133,7 +133,8 @@ def copy_license():
def create_api_json_schema():
outfile = os.path.join(DIST_DIR, 'electron-api.json')
execute(['electron-docs-linter', '--outfile={0}'.format(outfile)])
execute(['electron-docs-linter', '--outfile={0}'.format(outfile)],
'--version={}'.format(ELECTRON_VERSION.replace('v', '')))
def strip_binaries():
for binary in TARGET_BINARIES[PLATFORM]: