Contain arch in distribution name.
This commit is contained in:
parent
d82ceda770
commit
232b8721fe
3 changed files with 35 additions and 23 deletions
|
@ -1,5 +1,26 @@
|
|||
#!/usr/bin/env python
|
||||
|
||||
import platform
|
||||
import sys
|
||||
|
||||
NODE_VERSION = 'v0.11.10'
|
||||
BASE_URL = 'https://gh-contractor-zcbenz.s3.amazonaws.com/libchromiumcontent'
|
||||
LIBCHROMIUMCONTENT_COMMIT = '765ec5dcf192845fed4aec0b117f1e53050911d6'
|
||||
|
||||
ARCH = {
|
||||
'cygwin': '32bit',
|
||||
'darwin': '64bit',
|
||||
'linux2': platform.architecture()[0],
|
||||
'win32': '32bit',
|
||||
}[sys.platform]
|
||||
DIST_ARCH = {
|
||||
'32bit': 'ia32',
|
||||
'64bit': 'x64',
|
||||
}[ARCH]
|
||||
|
||||
TARGET_PLATFORM = {
|
||||
'cygwin': 'win32',
|
||||
'darwin': 'darwin',
|
||||
'linux2': 'linux',
|
||||
'win32': 'win32',
|
||||
}[sys.platform]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue