╭ changed ╮ │build.zig│ ╰─────────╯ ╭───────────╮ │← all files│ ╰───────────╯ ╭──────────────────────────────────────────────────────────────────────────────────────────╮ │37 │ │38 const wasm_step = b.step("wasm", "Generate the wasm"); │ │39 wasm_step.dependOn(&install_exe.step); │ │40 + │ │41 + // windows can't follow symlinks, so copy the wasm file to the embed dir │ │42 + if (.windows == @import("builtin").os.tag) { │ │43 + const copy_wasm = b.addUpdateSourceFiles(); │ │44 + copy_wasm.addCopyFileToSource(exe.getEmittedBin(), "src/embed/haxy.wasm");│ │45 + b.getInstallStep().dependOn(&copy_wasm.step); │ │46 + break :blk copy_wasm; │ │47 + } │ │48 │ │49 break :blk install_exe; │ │50 }; │ ╰──────────────────────────────────────────────────────────────────────────────────────────╯ ╭────────────────────────────────────────────────────────────────╮ │86 const run_unit_tests = b.addRunArtifact(unit_tests);│ │87 run_unit_tests.has_side_effects = true; │ │88 const test_step = b.step("test", "Run unit tests"); │ │81 - test_step.dependOn(&install_main_exe.step); │ │89 test_step.dependOn(&run_unit_tests.step); │ │90 } │ │91 │ ╰────────────────────────────────────────────────────────────────╯ ╭───────────────────────────────────────────────────────╮ │107 }), │ │108 }); │ │109 exe.root_module.addImport("haxy", haxy); │ │110 + exe.step.dependOn(&install_wasm_exe.step);│ │111 b.installArtifact(exe); │ │112 │ │113 const run_cmd = b.addRunArtifact(exe); │ ╰───────────────────────────────────────────────────────╯