docs: update releasing info (#14675)

* docs: update releasing info

* update more release and upload files

* address feedback from review
This commit is contained in:
Shelley Vohr 2018-09-24 09:12:16 -07:00 committed by GitHub
parent 2bcc86dac7
commit e9549a89bb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 27 additions and 31 deletions

View file

@ -39,9 +39,6 @@ def main():
utcnow = datetime.datetime.utcnow()
args.upload_timestamp = utcnow.strftime('%Y%m%d')
if not dist_newer_than_head():
run_python_script('create-dist.py')
build_version = get_electron_build_version()
if not ELECTRON_VERSION.startswith(build_version):
error = 'Tag name ({0}) should match build version ({1})\n'.format(
@ -135,20 +132,6 @@ def get_electron_build_version():
return subprocess.check_output([electron, '--version']).strip()
def dist_newer_than_head():
with scoped_cwd(SOURCE_ROOT):
try:
head_time = subprocess.check_output(['git', 'log', '--pretty=format:%at',
'-n', '1']).strip()
dist_time = os.path.getmtime(os.path.join(DIST_DIR, DIST_NAME))
except OSError as e:
if e.errno != errno.ENOENT:
raise
return False
return dist_time > int(head_time)
def upload_electron(release, file_path, args):
filename = os.path.basename(file_path)