chore: run create-typescript-definitions for darwin releases

This commit is contained in:
Samuel Attard 2018-09-29 16:39:22 +10:00
parent a4607d3284
commit 99cf6815a8
No known key found for this signature in database
GPG key ID: E89DDE5742D58C4E
2 changed files with 9 additions and 2 deletions

View file

@ -68,10 +68,10 @@ def main():
shutil.copy2(os.path.join(OUT_DIR, 'symbols.zip'), symbols_zip)
upload_electron(release, symbols_zip, args)
if PLATFORM == 'darwin':
api_path = os.path.join(OUT_DIR, 'electron-api.json')
api_path = os.path.join(SOURCE_ROOT, 'electron-api.json')
upload_electron(release, api_path, args)
ts_defs_path = os.path.join(OUT_DIR, 'electron.d.ts')
ts_defs_path = os.path.join(SOURCE_ROOT, 'electron.d.ts')
upload_electron(release, ts_defs_path, args)
dsym_zip = os.path.join(OUT_DIR, DSYM_NAME)
shutil.copy2(os.path.join(OUT_DIR, 'dsym.zip'), dsym_zip)

View file

@ -115,6 +115,13 @@ jobs:
ninja -C out/Default electron:electron_mksnapshot_zip
displayName: Build mksnapshot and zip
- bash: |
cd src/electron
npm run create-typescript-definitions
displayName: Generate type declarations
condition: and(succeeded(), ne(variables['ELECTRON_RELEASE'], '1'))
- bash: |
cd src/electron
if [ "$UPLOAD_TO_S3" != "1" ]; then