MCPcopy Create free account
hub / github.com/Syncplay/syncplay / create

Method create

buildPy2exe.py:541–556  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

539
540class NSISScript(object):
541 def create(self):
542 fileList, totalSize = self.getBuildDirContents(OUT_DIR)
543 print("Total size eq: {}".format(totalSize))
544 installFiles = self.prepareInstallListTemplate(fileList)
545 uninstallFiles = self.prepareDeleteListTemplate(fileList)
546
547 if os.path.isfile(SETUP_SCRIPT_PATH):
548 raise RuntimeError("Cannot create setup script, file exists at {}".format(SETUP_SCRIPT_PATH))
549 contents = Template(NSIS_SCRIPT_TEMPLATE).substitute(
550 version=syncplay.version,
551 uninstallFiles=uninstallFiles,
552 installFiles=installFiles,
553 totalSize=totalSize,
554 )
555 with codecs.open(SETUP_SCRIPT_PATH, "w", "utf-8-sig") as outfile:
556 outfile.write(contents)
557
558 def compile(self):
559 if not os.path.isfile(NSIS_COMPILE):

Callers 3

runMethod · 0.95
getConfigurationMethod · 0.80
addTopLayoutMethod · 0.80

Calls 4

getBuildDirContentsMethod · 0.95
writeMethod · 0.45

Tested by

no test coverage detected