Commit d9c63a12 authored by Legodev's avatar Legodev

destition pfad korrigiert

parent 12948963
......@@ -21,6 +21,7 @@ namespace = "@Desolation"
keypath = sourcePath / "Keys" / "DesolationREDUX.{}.biprivatekey".format(branch)
projectPath = sourcePath / repo / namespace / "Addons"
sourceAddonsPath = projectPath
destinationparentpath = sourcePath / branch / repo
destinationpath = sourcePath / branch / repo / "Addons"
addonlist = [x for x in os.listdir(sourceAddonsPath) if os.path.isdir(sourceAddonsPath / x)]
......@@ -38,6 +39,7 @@ if createMakefile:
print('PBOPROJECTEXEPATH={}'.format(pboProjectExePath), file=f)
print('PBOPROJECTOPTIONS={}'.format(pboProjectOptions), file=f)
print('SOURCEADDONSPATH={}'.format(sourceAddonsPath), file=f)
print('DESTINATIONPARENTPATH={}'.format(destinationparentpath), file=f)
print('DESTINATIONPATH={}'.format(destinationpath), file=f)
print('PROJECTPATH={}'.format(projectPath), file=f)
print('KEYPATH={}'.format(keypath), file=f)
......
......@@ -9,6 +9,7 @@ MakePboOptions = "-PsgFWBX=thumbs.db,*.txt,*.h,*.dep,*.cpp,*.hpp,*.bak,*.png,*.l
pboProjectExePath = mikerosToolsPath / "pboProject.exe"
pboProjectOptions = "+Clean +Noisy +P +G +F"
def createaddonbuildercmd(projectPath, sourceAddonsPath, namespace, addon, destinationpath, keypath):
sourceAddonPath = sourceAddonsPath / addon
cmd = (str(addonBuilderExePath), str(sourceAddonPath), str(destinationpath), '-clear', '-sign="{}"'.format(keypath),
......@@ -44,11 +45,12 @@ def createmikeromakepbocmd(sourceAddonsPath, addon, destinationpath):
return cmd, cmdshell
def createmikeropboprojectcmd(sourceAddonsPath, addon, destinationpath):
sourceAddonPath = sourceAddonsPath / addon
cmd = (str(pboProjectExePath), MakePboOptions, str(sourceAddonPath), str(destinationpath))
cmdshell = 'cmd.exe /C "\\"{}\\" {} \\"{}\\" +Mod={}\\ "'.format("${PBOPROJECTEXEPATH}", "${PBOPROJECTOPTIONS}", sourceAddonPath,
"${DESTINATIONPATH}")
cmdshell = 'cmd.exe /C "\\"{}\\" {} \\"{}\\" +Mod={}\\ "'.format("${PBOPROJECTEXEPATH}", "${PBOPROJECTOPTIONS}",
sourceAddonPath, "${DESTINATIONPARENTPATH}")
return cmd, cmdshell
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment