generate and upload electron.d.ts with each release

This commit is contained in:
Zeke Sikelianos 2017-03-31 21:01:55 -07:00
parent a686237d9b
commit 9a10486514
4 changed files with 11 additions and 0 deletions

View file

@ -92,6 +92,7 @@ def main():
if PLATFORM != 'win32' and not args.no_api_docs:
create_api_json_schema()
copy_typescript_definitions()
if PLATFORM == 'linux':
strip_binaries()
@ -144,6 +145,9 @@ def create_api_json_schema():
'--version={}'.format(ELECTRON_VERSION.replace('v', ''))],
env=env)
def copy_typescript_definitions():
shutil.copy2(os.path.join(SOURCE_ROOT, 'out', 'electron.d.ts'), DIST_DIR)
def strip_binaries():
for binary in TARGET_BINARIES[PLATFORM]:
if binary.endswith('.so') or '.' not in binary: