mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
Merge pull request #7189 from electron/both-arm-names
Upload ARM assets with and without v7l suffix
This commit is contained in:
@@ -4,6 +4,7 @@ import argparse
|
||||
import errno
|
||||
import hashlib
|
||||
import os
|
||||
import shutil
|
||||
import subprocess
|
||||
import sys
|
||||
import tempfile
|
||||
@@ -216,6 +217,14 @@ def upload_electron(github, release, file_path):
|
||||
# Upload the checksum file.
|
||||
upload_sha256_checksum(release['tag_name'], file_path)
|
||||
|
||||
# Upload ARM assets without the v7l suffix for backwards compatibility
|
||||
# TODO Remove for 2.0
|
||||
if 'armv7l' in filename:
|
||||
arm_filename = filename.replace('armv7l', 'arm')
|
||||
arm_file_path = os.path.join(os.path.dirname(file_path), arm_filename)
|
||||
shutil.copy2(file_path, arm_file_path)
|
||||
upload_electron(github, release, arm_file_path)
|
||||
|
||||
|
||||
def upload_io_to_github(github, release, name, io, content_type):
|
||||
params = {'name': name}
|
||||
|
||||
Reference in New Issue
Block a user