Browse Source

build: only upload libcxx headers on linux

Samuel Attard 3 years ago
parent
commit
1d77af0aff
1 changed files with 6 additions and 6 deletions
  1. 6 6
      script/release/uploaders/upload.py

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

@@ -103,13 +103,13 @@ def main():
     shutil.copy2(os.path.join(OUT_DIR, 'libcxx_objects.zip'), libcxx_objects_zip)
     upload_electron(release, libcxx_objects_zip, args)
 
-  # Upload headers.zip and abi_headers.zip as non-platform specific
-  if get_target_arch() == "x64":
-    cxx_headers_zip = os.path.join(OUT_DIR, 'libcxx_headers.zip')
-    upload_electron(release, cxx_headers_zip, args)
+    # Upload headers.zip and abi_headers.zip as non-platform specific
+    if get_target_arch() == "x64":
+      cxx_headers_zip = os.path.join(OUT_DIR, 'libcxx_headers.zip')
+      upload_electron(release, cxx_headers_zip, args)
 
-    abi_headers_zip = os.path.join(OUT_DIR, 'libcxxabi_headers.zip')
-    upload_electron(release, abi_headers_zip, args)
+      abi_headers_zip = os.path.join(OUT_DIR, 'libcxxabi_headers.zip')
+      upload_electron(release, abi_headers_zip, args)
 
   # Upload free version of ffmpeg.
   ffmpeg = get_zip_name('ffmpeg', ELECTRON_VERSION)