forked from Moussa/3D-Models-automaton
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathmake_release.py
31 lines (23 loc) · 881 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
29
30
31
from os import environ
import requests
import zipfile
from io import BytesIO
def zip_repository():
buffer = BytesIO()
with zipfile.ZipFile(buffer, 'a', compression=zipfile.ZIP_DEFLATED, compresslevel=9) as z:
z.write('automate.py')
z.write('HLMVModel.py')
z.write('imageprocessor.py')
z.write('mem.exe')
z.write('TFWiki-scripts/wikitools/wiki.py')
z.write('TFWiki-scripts/wikitools/page.py')
z.write('3DModels_BlackFirePlusBlackBackground/HLMV - Cubemap Fix.vpk')
z.write('3DModels_BlackFirePlusBlackBackground/HLMV - Fire Overlay Fix.vpk')
z.write('3DModels_BlackFirePlusBlackBackground/HLMV - Skybox Background - Black.vpk')
z.write('README.md')
z.write('requirements.txt')
return buffer.getvalue()
if __name__ == '__main__':
z = zip_repository()
with open('3D-Models-automation.zip', 'wb') as f:
f.write(z)