Browse Source

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

John Kleinschmidt 4 years ago
parent
commit
cdc9625a86
1 changed files with 2 additions and 2 deletions
  1. 2 2
      script/release/uploaders/upload.py

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

@@ -76,8 +76,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)