Merge pull request #7120 from electron/lint-docs
Publish the public API as a JSON object
This commit is contained in:
commit
d4b204799d
3 changed files with 9 additions and 2 deletions
|
@ -85,6 +85,7 @@ def main():
|
|||
copy_chrome_binary('chromedriver')
|
||||
copy_chrome_binary('mksnapshot')
|
||||
copy_license()
|
||||
copy_api_json_schema()
|
||||
|
||||
if PLATFORM == 'linux':
|
||||
strip_binaries()
|
||||
|
@ -128,6 +129,8 @@ def copy_license():
|
|||
DIST_DIR)
|
||||
shutil.copy2(os.path.join(SOURCE_ROOT, 'LICENSE'), DIST_DIR)
|
||||
|
||||
def copy_api_json_schema():
|
||||
shutil.copy2(os.path.join(OUT_DIR, 'electron-api.json'), DIST_DIR)
|
||||
|
||||
def strip_binaries():
|
||||
for binary in TARGET_BINARIES[PLATFORM]:
|
||||
|
|
|
@ -79,6 +79,8 @@ def main():
|
|||
upload_electron(github, release, os.path.join(DIST_DIR, DIST_NAME))
|
||||
upload_electron(github, release, os.path.join(DIST_DIR, SYMBOLS_NAME))
|
||||
if PLATFORM == 'darwin':
|
||||
upload_electron(github, release, os.path.join(DIST_DIR,
|
||||
'electron-api.json'))
|
||||
upload_electron(github, release, os.path.join(DIST_DIR, DSYM_NAME))
|
||||
elif PLATFORM == 'win32':
|
||||
upload_electron(github, release, os.path.join(DIST_DIR, PDB_NAME))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue