Browse Source

build: upload dsym files for all mac releases (#26427)

Co-authored-by: John Kleinschmidt <[email protected]>
trop[bot] 4 years ago
parent
commit
7446006c24
1 changed files with 2 additions and 2 deletions
  1. 2 2
      script/release/uploaders/upload.py

+ 2 - 2
script/release/uploaders/upload.py

@@ -77,8 +77,8 @@ def main():
     symbols_zip = os.path.join(OUT_DIR, SYMBOLS_NAME)
     shutil.copy2(os.path.join(OUT_DIR, 'symbols.zip'), symbols_zip)
     upload_electron(release, symbols_zip, args)
-  if get_platform_key() == 'darwin':
-    if get_target_arch() == 'x64':
+  if PLATFORM == 'darwin':
+    if get_platform_key() == 'darwin' and get_target_arch() == 'x64':
       api_path = os.path.join(ELECTRON_DIR, 'electron-api.json')
       upload_electron(release, api_path, args)