Use node's version for the node headers tarball.
This commit is contained in:
parent
c2093946c8
commit
a26308d902
2 changed files with 4 additions and 2 deletions
|
@ -12,11 +12,12 @@ from lib.util import *
|
||||||
|
|
||||||
|
|
||||||
ATOM_SHELL_VRESION = get_atom_shell_version()
|
ATOM_SHELL_VRESION = get_atom_shell_version()
|
||||||
|
NODE_VERSION = 'v0.8.15'
|
||||||
|
|
||||||
SOURCE_ROOT = os.path.abspath(os.path.dirname(os.path.dirname(__file__)))
|
SOURCE_ROOT = os.path.abspath(os.path.dirname(os.path.dirname(__file__)))
|
||||||
DIST_DIR = os.path.join(SOURCE_ROOT, 'dist')
|
DIST_DIR = os.path.join(SOURCE_ROOT, 'dist')
|
||||||
NODE_DIR = os.path.join(SOURCE_ROOT, 'vendor', 'node')
|
NODE_DIR = os.path.join(SOURCE_ROOT, 'vendor', 'node')
|
||||||
DIST_HEADERS_NAME = 'node-{0}'.format(ATOM_SHELL_VRESION)
|
DIST_HEADERS_NAME = 'node-{0}'.format(NODE_VERSION)
|
||||||
DIST_HEADERS_DIR = os.path.join(DIST_DIR, DIST_HEADERS_NAME)
|
DIST_HEADERS_DIR = os.path.join(DIST_DIR, DIST_HEADERS_NAME)
|
||||||
|
|
||||||
TARGET_PLATFORM = {
|
TARGET_PLATFORM = {
|
||||||
|
|
|
@ -19,6 +19,7 @@ TARGET_PLATFORM = {
|
||||||
}[sys.platform]
|
}[sys.platform]
|
||||||
|
|
||||||
ATOM_SHELL_VRESION = get_atom_shell_version()
|
ATOM_SHELL_VRESION = get_atom_shell_version()
|
||||||
|
NODE_VERSION = 'v0.8.15'
|
||||||
|
|
||||||
SOURCE_ROOT = os.path.abspath(os.path.dirname(os.path.dirname(__file__)))
|
SOURCE_ROOT = os.path.abspath(os.path.dirname(os.path.dirname(__file__)))
|
||||||
DIST_DIR = os.path.join(SOURCE_ROOT, 'dist')
|
DIST_DIR = os.path.join(SOURCE_ROOT, 'dist')
|
||||||
|
@ -66,7 +67,7 @@ def upload(bucket, access_key, secret_key, version=ATOM_SHELL_VRESION):
|
||||||
s3put(bucket, access_key, secret_key, DIST_DIR,
|
s3put(bucket, access_key, secret_key, DIST_DIR,
|
||||||
'atom-shell/{0}'.format(version), [DIST_NAME])
|
'atom-shell/{0}'.format(version), [DIST_NAME])
|
||||||
s3put(bucket, access_key, secret_key, DIST_DIR,
|
s3put(bucket, access_key, secret_key, DIST_DIR,
|
||||||
'atom-shell/dist/{0}'.format(version), glob.glob('node-*.tar.gz'))
|
'atom-shell/dist/{0}'.format(NODE_VERSION), glob.glob('node-*.tar.gz'))
|
||||||
|
|
||||||
|
|
||||||
def update_version(bucket, access_key, secret_key):
|
def update_version(bucket, access_key, secret_key):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue