Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
gogoprog committed Sep 13, 2017
1 parent 48c0cae commit 049891e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions scripts/emscripten.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,12 @@ def emcc(appDir, outputDir, includeEmptyData):
os.system(cmd)
os.chdir(previous_dir)

def build(targetDir):
def build(appDir, outputDir):
common.log("Running emcc...")
current_dir = os.getcwd()
os.chdir(targetDir)
os.chdir(appDir)
os.system("rm -rf index.data index.html index.js index.html.mem")
emcc(current_dir, current_dir, True)
emcc(current_dir, outputDir, True)
os.chdir(current_dir)

def runServer(targetDir):
Expand Down
2 changes: 1 addition & 1 deletion scripts/gengine-gen-dist
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ distDir = common.rootPath + "/dist"
targetDir = distDir + "/build"
shutil.rmtree(distDir, True)
os.makedirs(targetDir)
emscripten.build(targetDir)
emscripten.build(targetDir, targetDir)
shutil.copytree(common.rootPath + "/scripts", distDir + "/scripts")

os.makedirs(distDir + "/deps/common/Ash-Haxe")
Expand Down
2 changes: 1 addition & 1 deletion scripts/gengine-run
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def run():
os.system(command)
else:
if not common.distributed:
emscripten.build(common.targetDir)
emscripten.build(common.targetDir, common.targetDir)
else:
os.chdir(common.targetDir)
os.system("cp -f " + common.rootPath + "/build/index.* .")
Expand Down

0 comments on commit 049891e

Please sign in to comment.