-
Notifications
You must be signed in to change notification settings - Fork 1
/
make_release.py
28 lines (24 loc) · 816 Bytes
/
make_release.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
import os
import zipfile
import stalker_resource_copier
file_name = 'stalker-resource-copier-' + ('.'.join(map(str, stalker_resource_copier.VERSION))) + '.zip'
with zipfile.ZipFile(file_name, 'w') as z:
z.write(
'stalker_resource_copier.py',
'stalker_resource_copier/stalker_resource_copier.pyw',
compress_type=zipfile.ZIP_DEFLATED
)
z.write(
'README.md',
'stalker_resource_copier/README.md',
compress_type=zipfile.ZIP_DEFLATED
)
for file in os.listdir('xray'):
name, ext = os.path.splitext(file)
if ext == '.py':
z.write(
'xray\\{}.py'.format(name),
'stalker_resource_copier/xray/{}.py'.format(name),
compress_type=zipfile.ZIP_DEFLATED
)
input('Finish!')