Skip to content

Commit cc1e44b

Browse files
author
Sebastian Humenda
committed
append file name endings for Windows zip distributions
1 parent 9023d1e commit cc1e44b

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

create_windows_distributions.py

+5-2
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,11 @@ def bundle_files(src, label):
5050
f.write('\r\nFor other information, see the file README.md or http://humenda.github.io/GladTeX\r\n')
5151

5252
# copy README and other files
53-
for file in ['README.md', 'COPYING']:
54-
shutil.copy(file, os.path.join(output_name, file))
53+
for file in ['README.md', 'COPYING', 'ChangeLog']:
54+
dest = os.path.join(output_name, file)
55+
if not '.' in dest[-5:]:
56+
dest += '.txt'
57+
shutil.copy(file, dest)
5558

5659
with zipfile.ZipFile(output_name + '.zip', 'w', zipfile.ZIP_DEFLATED) as z:
5760
for file in files:

0 commit comments

Comments
 (0)