electron/script/lib/config.py

27 lines
546 B
Python
Raw Normal View History

2014-01-31 04:18:30 +00:00
#!/usr/bin/env python
2014-06-04 15:24:38 +00:00
import platform
import sys
2014-06-30 09:16:33 +00:00
NODE_VERSION = 'v0.11.13'
2014-01-31 04:18:30 +00:00
BASE_URL = 'https://gh-contractor-zcbenz.s3.amazonaws.com/libchromiumcontent'
LIBCHROMIUMCONTENT_COMMIT = 'afb4570ceee2ad10f3caf5a81335a2ee11ec68a5'
2014-06-04 15:24:38 +00:00
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]