Mercurial > LightClone
comparison LightTools/release.py @ 49:48705dc6e568
Fix window issues; Start on GuiRenderContext
author | koryspansel |
---|---|
date | Fri, 23 Sep 2011 16:54:51 -0700 |
parents | 81d413160824 |
children |
comparison
equal
deleted
inserted
replaced
48:4663f93aefc4 | 49:48705dc6e568 |
---|---|
27 | 27 |
28 if not isfile(executable): | 28 if not isfile(executable): |
29 raise Exception('Error: Could not locate executable') | 29 raise Exception('Error: Could not locate executable') |
30 | 30 |
31 data = join(root, 'data') | 31 data = join(root, 'data') |
32 extern = join(root, 'extern') | |
32 | 33 |
33 if not isdir(data): | 34 if not isdir(data): |
34 raise Exception('Error: Could not locate data folder') | 35 raise Exception('Error: Could not locate data folder') |
35 | 36 |
36 if isdir(build): | 37 if isdir(build): |
39 os.makedirs(build) | 40 os.makedirs(build) |
40 | 41 |
41 shutil.copyfile(executable, join(build, basename(executable))) | 42 shutil.copyfile(executable, join(build, basename(executable))) |
42 | 43 |
43 for filename in relative_walk(data): | 44 for filename in relative_walk(data): |
44 filepath = join(build, filename) | 45 filepath = join(build, 'Data', filename) |
45 | 46 |
46 if not isdir(dirname(filepath)): | 47 if not isdir(dirname(filepath)): |
47 os.makedirs(dirname(filepath)) | 48 os.makedirs(dirname(filepath)) |
48 | 49 |
49 shutil.copyfile(join(data, filename), filepath) | 50 shutil.copyfile(join(data, filename), filepath) |
51 | |
52 for filename in relative_walk(extern): | |
53 filepath = join(build, filename) | |
54 | |
55 if not isdir(dirname(filepath)): | |
56 os.makedirs(dirname(filepath)) | |
57 | |
58 shutil.copyfile(join(extern, filename), filepath) | |
50 | 59 |
51 if not isdir(location): | 60 if not isdir(location): |
52 os.makedirs(location) | 61 os.makedirs(location) |
53 | 62 |
54 with zipfile.ZipFile(join(location, project + datetime.datetime.now().strftime('%Y%m%d%I%M%p') + '.zip'), 'w') as handle: | 63 with zipfile.ZipFile(join(location, project + datetime.datetime.now().strftime('%Y%m%d%I%M%p') + '.zip'), 'w') as handle: |