Browse Source

set version arg when creating electron-api.json

Zeke Sikelianos 8 years ago
parent
commit
057fda5352
1 changed files with 2 additions and 1 deletions
  1. 2 1
      script/create-dist.py

+ 2 - 1
script/create-dist.py

@@ -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]: