generate and upload electron.d.ts with each release
This commit is contained in:
parent
a686237d9b
commit
9a10486514
4 changed files with 11 additions and 0 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue