MCPcopy Create free account
hub / github.com/culvertsoft/mgen / install

Function install

buildimpl.py:151–163  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

149 zipdir("target/install_zip", getInstallZipName())
150
151def install():
152
153 installPath = os.environ.get('MGEN_INSTALL_PATH')
154 if installPath == None:
155 raise Exception("Environmental variable MGEN_INSTALL_PATH not set")
156
157 print("Installing MGEN to " + installPath)
158
159 rmFolderContents(installPath)
160 mkFolder(installPath)
161 unzip(getInstallZipName(), installPath)
162 mkFileExecutable(installPath + "/bin/mgen")
163 mkFileExecutable(installPath + "/bin/mgen.sh")
164
165def upload_to_culvertsoft():
166 folderName = 'snapshot' if mgen_version == 'SNAPSHOT' else 'releases'

Callers

nothing calls this directly

Calls 7

ExceptionClass · 0.85
rmFolderContentsFunction · 0.85
mkFolderFunction · 0.85
unzipFunction · 0.85
getInstallZipNameFunction · 0.85
mkFileExecutableFunction · 0.85
getMethod · 0.45

Tested by

no test coverage detected