Execute zip in projects/worldbild to avoid these directories in the zip file
Signed-off-by: merspieler <merspieler@airmail.cc>
This commit is contained in:
parent
6915efac93
commit
8401aa9985
1 changed files with 2 additions and 2 deletions
|
@ -162,13 +162,13 @@ def build_tile(name, west, south, east, north, chunk_size, threads, cont=False):
|
||||||
def after_build(name):
|
def after_build(name):
|
||||||
if os.path.isfile("projects/worldbuild/osm2city-exceptions.log"):
|
if os.path.isfile("projects/worldbuild/osm2city-exceptions.log"):
|
||||||
run("mv projects/worldbuild/osm2city-exceptions.log projects/worldbuild/output/error/" + name + ".exceptions.log")
|
run("mv projects/worldbuild/osm2city-exceptions.log projects/worldbuild/output/error/" + name + ".exceptions.log")
|
||||||
run("zip -rq projects/worldbuild/output/error/" + name + ".zip projects/worldbuild/scenery/ ")
|
run("bash -c '(cd projects/worldbuild && zip -rq output/error/" + name + ".zip scenery/ )'")
|
||||||
|
|
||||||
# Trigger failed after build script
|
# Trigger failed after build script
|
||||||
if os.path.isfile("./scripts/afterbuild-failed"):
|
if os.path.isfile("./scripts/afterbuild-failed"):
|
||||||
os.system("./scripts/afterbuild-failed " + name + " &")
|
os.system("./scripts/afterbuild-failed " + name + " &")
|
||||||
else:
|
else:
|
||||||
run("zip -rq projects/worldbuild/output/" + name + ".zip projects/worldbuild/scenery/ ")
|
run("bash -c '(cd projects/worldbuild && zip -rq output/" + name + ".zip scenery/ )'")
|
||||||
|
|
||||||
# Trigger after build script
|
# Trigger after build script
|
||||||
if os.path.isfile("./scripts/afterbuild-success"):
|
if os.path.isfile("./scripts/afterbuild-success"):
|
||||||
|
|
Loading…
Reference in a new issue