Generate the distribution file under 'dist' directory.

This commit is contained in:
Cheng Zhao 2013-08-21 11:57:35 +08:00
parent 5b862fdf60
commit 5b74dff8f1
3 changed files with 4 additions and 5 deletions

2
.gitignore vendored
View file

@ -1,6 +1,4 @@
.DS_Store
atom-shell.zip
version
/build/
/dist/
/frameworks/

View file

@ -84,7 +84,7 @@ def create_version():
def create_zip():
print "Zipping distribution..."
zip_file = os.path.join(SOURCE_ROOT, 'atom-shell.zip')
zip_file = os.path.join(SOURCE_ROOT, 'dist', 'atom-shell.zip')
safe_unlink(zip_file)
with scoped_cwd(DIST_DIR):

View file

@ -11,6 +11,7 @@ from lib.util import *
SOURCE_ROOT = os.path.abspath(os.path.dirname(os.path.dirname(__file__)))
DIST_DIR = os.path.join(SOURCE_ROOT, 'dist')
def main():
@ -49,11 +50,11 @@ def dist_newer_than_head():
def upload():
os.chdir(SOURCE_ROOT)
os.chdir(DIST_DIR)
bucket, access_key, secret_key = s3_config()
version = get_atom_shell_version()
s3put(bucket, access_key, secret_key, SOURCE_ROOT,
s3put(bucket, access_key, secret_key, DIST_DIR,
'atom-shell/{0}'.format(version), glob.glob('atom-shell*.zip'))
update_version(bucket, access_key, secret_key)