docs: update releasing info (#14675)
* docs: update releasing info * update more release and upload files * address feedback from review
This commit is contained in:
parent
2bcc86dac7
commit
e9549a89bb
3 changed files with 27 additions and 31 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue