Don't pollute web source dir with build artifacts

This commit is contained in:
sergeypdev 2025-05-23 17:45:24 +04:00
parent c31ebea3bd
commit 55d6de8eb9
2 changed files with 3 additions and 2 deletions

View File

@ -242,7 +242,7 @@ main :: proc() {
"main_web", "main_web",
"-target:js_wasm32", "-target:js_wasm32",
"-build-mode:obj", "-build-mode:obj",
"-out:main_web/game", "-out:build/web/game",
}, },
COMMON_FLAGS, COMMON_FLAGS,
debug_flag, debug_flag,
@ -257,7 +257,7 @@ main :: proc() {
"-g", "-g",
"-o", "-o",
"build/web/index.html", "build/web/index.html",
"main_web/game.wasm.o", "build/web/game.wasm.o",
"libs/raylib/zig-out-static/lib/libraylib.a", "libs/raylib/zig-out-static/lib/libraylib.a",
"libs/physfs/build/libphysfs.a", "libs/physfs/build/libphysfs.a",
"-sUSE_GLFW=3", "-sUSE_GLFW=3",
@ -272,6 +272,7 @@ main :: proc() {
}, },
"", "",
) )
remove_file("./build/web/game.wasm.o")
copy_file( copy_file(
filepath.join( filepath.join(

Binary file not shown.