Fix project templates (#278)

This commit is contained in:
Nikolas 2025-08-31 16:55:14 +02:00
parent acd5507b0e
commit c5d9cf405d
No known key found for this signature in database
GPG Key ID: E95F679E3CDD9784
2 changed files with 6 additions and 6 deletions

View File

@ -60,7 +60,7 @@ pub fn build(b: *std.Build) !void {
.shell_file_path = emsdk.shell(raylib_dep.builder), .shell_file_path = emsdk.shell(raylib_dep.builder),
.embed_paths = &.{ .embed_paths = &.{
.{ .{
.src_path = b.pathJoin(&.{ module_subpath, "resources" }), .src_path = b.pathJoin(&.{ "resources" }),
.virtual_path = "resources", .virtual_path = "resources",
}, },
}, },
@ -94,8 +94,8 @@ pub fn build(b: *std.Build) !void {
New-Item -Name "build.zig" -ItemType "file" -Value $BUILD_DOT_ZIG -Force New-Item -Name "build.zig" -ItemType "file" -Value $BUILD_DOT_ZIG -Force
zig fetch --save git+https://github.com/Not-Nik/raylib-zig#devel zig fetch --save git+https://github.com/raylib-zig/raylib-zig#devel
zig fetch --save git+https://github.com/emscripten-core/emsdk#4.0.9 zig fetch --save=emsdk git+https://github.com/emscripten-core/emsdk#4.0.9
New-Item -Name "resources" -ItemType "directory" New-Item -Name "resources" -ItemType "directory"
New-Item -Name "resources/placeholder.txt" -ItemType "file" -Value "" -Force New-Item -Name "resources/placeholder.txt" -ItemType "file" -Value "" -Force

View File

@ -57,7 +57,7 @@ pub fn build(b: *std.Build) !void {
.shell_file_path = emsdk.shell(raylib_dep.builder), .shell_file_path = emsdk.shell(raylib_dep.builder),
.embed_paths = &.{ .embed_paths = &.{
.{ .{
.src_path = b.pathJoin(&.{ module_subpath, "resources" }), .src_path = b.pathJoin(&.{ "resources" }),
.virtual_path = "resources", .virtual_path = "resources",
}, },
}, },
@ -88,8 +88,8 @@ pub fn build(b: *std.Build) !void {
} }
}' >> build.zig }' >> build.zig
zig fetch --save git+https://github.com/Not-Nik/raylib-zig#devel zig fetch --save git+https://github.com/raylib-zig/raylib-zig#devel
zig fetch --save git+https://github.com/emscripten-core/emsdk#4.0.9 zig fetch --save=emsdk git+https://github.com/emscripten-core/emsdk#4.0.9
mkdir resources mkdir resources
touch resources/placeholder.txt touch resources/placeholder.txt