| 566 | raise RuntimeError("NSIS compilation return code: %d" % retcode) |
| 567 | |
| 568 | def getBuildDirContents(self, path): |
| 569 | fileList = {} |
| 570 | totalSize = 0 |
| 571 | for root, _, files in os.walk(path): |
| 572 | totalSize += sum(os.path.getsize(os.path.join(root, file_)) for file_ in files) |
| 573 | for file_ in files: |
| 574 | new_root = root.replace(OUT_DIR, "").strip("\\") |
| 575 | if new_root not in fileList: |
| 576 | fileList[new_root] = [] |
| 577 | fileList[new_root].append(file_) |
| 578 | return fileList, totalSize |
| 579 | |
| 580 | def prepareInstallListTemplate(self, fileList): |
| 581 | create = [] |