💄 for node version and upload node.lib.
This commit is contained in:
parent
30c9cd4318
commit
e7d4b44d05
2 changed files with 12 additions and 4 deletions
|
@ -12,7 +12,7 @@ from lib.util import *
|
||||||
|
|
||||||
|
|
||||||
ATOM_SHELL_VRESION = get_atom_shell_version()
|
ATOM_SHELL_VRESION = get_atom_shell_version()
|
||||||
NODE_VERSION = 'v0.8.15'
|
NODE_VERSION = 'v0.10.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')
|
||||||
|
|
|
@ -19,7 +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'
|
NODE_VERSION = 'v0.10.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')
|
||||||
|
@ -64,11 +64,19 @@ def dist_newer_than_head():
|
||||||
def upload(bucket, access_key, secret_key, version=ATOM_SHELL_VRESION):
|
def upload(bucket, access_key, secret_key, version=ATOM_SHELL_VRESION):
|
||||||
os.chdir(DIST_DIR)
|
os.chdir(DIST_DIR)
|
||||||
|
|
||||||
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(NODE_VERSION), glob.glob('node-*.tar.gz'))
|
'atom-shell/dist/{0}'.format(NODE_VERSION), glob.glob('node-*.tar.gz'))
|
||||||
|
|
||||||
|
if TARGET_PLATFORM == 'win32':
|
||||||
|
out_dir = os.path.join(SOURCE_ROOT, 'out', 'Release')
|
||||||
|
node_lib = os.path.join(out_dir, 'node.lib')
|
||||||
|
s3put(bucket, access_key, secret_key, out_dir,
|
||||||
|
'atom-shell/dist/{0}'.format(NODE_VERSION), [node_lib])
|
||||||
|
s3put(bucket, access_key, secret_key, out_dir,
|
||||||
|
'atom-shell/dist/{0}/x64'.format(NODE_VERSION), [node_lib])
|
||||||
|
|
||||||
|
|
||||||
def update_version(bucket, access_key, secret_key):
|
def update_version(bucket, access_key, secret_key):
|
||||||
prefix = os.path.join(SOURCE_ROOT, 'dist')
|
prefix = os.path.join(SOURCE_ROOT, 'dist')
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue