Merge pull request #8437 from electron/set-version-for-electron-api-json

set version arg when creating electron-api.json
This commit is contained in:
Kevin Sawicki 2017-01-18 15:13:30 -08:00 committed by GitHub
commit 3766fb6652

View file

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