-
Notifications
You must be signed in to change notification settings - Fork 27
/
Copy pathmake_keyhotee.py
46 lines (41 loc) · 1.35 KB
/
make_keyhotee.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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
import shutil
import os
import zipfile
version = "0.6.0"
def zipdir(path, zip):
for root, dirs, files in os.walk(path):
for file in files:
zip.write(os.path.join(root, file))
if __name__ == '__main__':
#copy files listed in install_lst.txt to temporary bin dir
binDir = 'keyhotee_' + version
if os.path.exists(binDir):
shutil.rmtree(binDir)
#TODO: remove dependency on msvcr100 dll (from ICU dlls)
os.mkdir(binDir)
for line in open("keyhotee_install_32.txt",'r'):
line=line.strip()
if line:
print("copy " + line)
shutil.copy(line,binDir)
#platformDir = binDir + '/platforms'
#os.mkdir(platformDir)
#print('platformDir=',platformDir)
#shutil.copy('c:/gh/bin/platforms/qminimal.dll',platformDir)
#shutil.copy('c:/gh/bin/platforms/qoffscreen.dll',platformDir)
#shutil.copy('c:/gh/bin/platforms/qwindows.dll',platformDir)
#zip up files in bin dir to miner.zip
zipfileName = binDir + '.zip'
zip = zipfile.ZipFile(zipfileName,'w')
zipdir(binDir, zip)
zip.close()
#copy pdb
pdbDir = 'pdbs' + version
if os.path.exists(pdbDir)
shutil.rmtree(pdbDir)
os.mkdir(pdbDir)
shutil.copy('c:/gh/vs11/release/',pdbDir)
#zipfileName = pdbDir + '.zip'
#zip = zipfile.ZipFile(zipfileName,'w')
#zipdir(pdbDir,zip)
#zip.close()