Removed file extension for afterbuild script and pass tile name
Signed-off-by: merspieler <merspieler@airmail.cc>
This commit is contained in:
parent
9bc6cebf2e
commit
47e6ad50ab
1 changed files with 4 additions and 4 deletions
|
@ -114,14 +114,14 @@ def after_build(name):
|
||||||
run("zip -rq projects/worldbuild/output/error/" + name + ".zip projects/worldbuild/scenery/ ")
|
run("zip -rq projects/worldbuild/output/error/" + name + ".zip projects/worldbuild/scenery/ ")
|
||||||
|
|
||||||
# Trigger failed after build script
|
# Trigger failed after build script
|
||||||
if os.path.isfile("./scripts/afterbuild-failed.sh"):
|
if os.path.isfile("./scripts/afterbuild-failed"):
|
||||||
os.system("./scripts/afterbuild-failed.sh &")
|
os.system("./scripts/afterbuild-failed " + name + " &")
|
||||||
else:
|
else:
|
||||||
run("zip -rq projects/worldbuild/output/" + name + ".zip projects/worldbuild/scenery/ ")
|
run("zip -rq projects/worldbuild/output/" + name + ".zip projects/worldbuild/scenery/ ")
|
||||||
|
|
||||||
# Trigger after build script
|
# Trigger after build script
|
||||||
if os.path.isfile("./scripts/afterbuild-success.sh"):
|
if os.path.isfile("./scripts/afterbuild-success"):
|
||||||
os.system("./scripts/afterbuild-success.sh &")
|
os.system("./scripts/afterbuild-success " + name + " &")
|
||||||
|
|
||||||
run("rm -r projects/worldbuild/scenery/*")
|
run("rm -r projects/worldbuild/scenery/*")
|
||||||
run("./clear-cache-files worldbuild")
|
run("./clear-cache-files worldbuild")
|
||||||
|
|
Loading…
Reference in a new issue