build: strip warnings from stdout in get_release
(#37277)
build: strip warnings from stdout in get_release
This commit is contained in:
parent
3138acc377
commit
a44e76fb70
1 changed files with 5 additions and 1 deletions
|
@ -384,7 +384,11 @@ def upload_sha256_checksum(version, file_path, key_prefix=None):
|
|||
def get_release(version):
|
||||
script_path = os.path.join(
|
||||
ELECTRON_DIR, 'script', 'release', 'find-github-release.js')
|
||||
release_info = execute(['node', script_path, version])
|
||||
|
||||
# Strip warnings from stdout to ensure the only output is the desired object
|
||||
release_env = os.environ.copy()
|
||||
release_env['NODE_NO_WARNINGS'] = '1'
|
||||
release_info = execute(['node', script_path, version], release_env)
|
||||
if is_verbose_mode():
|
||||
print('Release info for version: {}:\n'.format(version))
|
||||
print(release_info)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue