Skip to content

Commit

Permalink
Scripts fixed for windows
Browse files Browse the repository at this point in the history
  • Loading branch information
gogoprog committed Dec 2, 2016
1 parent 2e13ab6 commit dd46bc0
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions scripts/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,10 +179,10 @@ def compile():

if not os.path.exists(targetDir + "/build.hxml"):
log("Compiling : Running haxe default command line...")
os.system("haxe -cp $GENGINE/deps/common/Ash-Haxe/src/ -cp $GENGINE/src/haxe/ -cp " + targetDir + " -cp " + targetDir + "/src -main gengine.Main -js " + targetDir + "generated/main.js")
os.system("haxe -cp " + os.environ['GENGINE'] + "/deps/common/Ash-Haxe/src/ -cp " + os.environ['GENGINE'] + "/src/haxe/ -cp " + targetDir + " -cp " + targetDir + "/src -main gengine.Main -js " + targetDir + "generated/main.js")
else:
log("Compiling : Running haxe with build.hxml...")
os.system("cd " + targetDir + "; haxe build.hxml")
os.system("cd " + targetDir + " && haxe build.hxml")

if not os.path.exists(targetDir + "generated/main.js"):
exitWithError("Haxe compilation failed.")
1 change: 1 addition & 0 deletions scripts/dist/start-server.bat
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ set GENGINE=%~dp0

cd %GENGINE%
python scripts/gengine-run %1
pause
2 changes: 1 addition & 1 deletion scripts/emscripten.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ def build(targetDir):
def runServer(targetDir):
os.chdir(targetDir)
common.log("Running HTTP server in '" + targetDir + "'...")
os.system("python3 -m http.server");
os.system("python -m http.server");

0 comments on commit dd46bc0

Please sign in to comment.