fix(scripts): account for sys.platform being "linux" as well "linux2" (#21741)

This commit is contained in:
Daniel Playfair Cal 2020-01-13 11:58:25 +11:00 committed by Cheng Zhao
parent a0a932826c
commit 29b7d80eb5

View file

@ -260,6 +260,7 @@ def get_buildtools_executable(name):
buildtools = os.path.realpath(os.path.join(ELECTRON_DIR, '..', 'buildtools'))
chromium_platform = {
'darwin': 'mac',
'linux': 'linux64',
'linux2': 'linux64',
'win32': 'win',
}[sys.platform]