Skip to content
Permalink
Browse files

Exclude latest-version.json from releases.

  • Loading branch information
cmpilato committed Nov 22, 2019
1 parent 98cbdcb commit 14179cf9fa6a793f0f73d85ebcbb8f97b0fb6b73
Showing with 8 additions and 2 deletions.
  1. +8 −2 tools/make-release
@@ -46,9 +46,15 @@ def make_archive(export_source_url, export_target, archive_cmds):
os.chdir(export_target)
os.system('wget -q -O - "%s" | tar xz --strip-components=1'
% (export_source_url))
for item in [ 'tools', 'notes' ]: # add excluded items here
# Remove excluded items
for item in ['tools',
'notes',
'www/latest-version.json']:
rmpath = os.sep.join(item.split('/'))
shutil.rmtree(rmpath)
if os.path.isfile(rmpath):
os.unlink(rmpath)
else:
shutil.rmtree(rmpath)
os.chdir('..')
for cmd in archive_cmds:
os.system(cmd)

0 comments on commit 14179cf

Please sign in to comment.
You can’t perform that action at this time.