| ... | ... | @@ -289,7 +289,7 @@ pub fn add_files_package(pkg_name: []const u8, dirs: []const []const u8, parent_ |
| 289 | 289 | continue; |
| 290 | 290 | } |
| 291 | 291 | const path = try std.mem.dupe(gpa, u8, p.path); |
| 292 | | try map.put(path[dir_path.len..], path); |
| 292 | try map.put(path, try std.fmt.allocPrint(gpa, "{s}/{s}", .{ dir_path, path })); |
| 293 | 293 | } |
| 294 | 294 | } |
| 295 | 295 | |
| ... | ... | @@ -304,7 +304,7 @@ pub fn add_files_package(pkg_name: []const u8, dirs: []const []const u8, parent_ |
| 304 | 304 | ); |
| 305 | 305 | var iter = map.iterator(); |
| 306 | 306 | while (iter.next()) |item| { |
| 307 | | try w.print(" .{{ .@\"0\" = \"{}\", .@\"1\" = @embedFile(\"./../../../{}\") }},\n", .{ std.zig.fmtEscapes(item.key_ptr.*), std.zig.fmtEscapes(item.value_ptr.*) }); |
| 307 | try w.print(" .{{ .@\"0\" = \"/{}\", .@\"1\" = @embedFile(\"./../../../{}\") }},\n", .{ std.zig.fmtEscapes(item.key_ptr.*), std.zig.fmtEscapes(item.value_ptr.*) }); |
| 308 | 308 | } |
| 309 | 309 | try w.writeAll("\n"); |
| 310 | 310 | try w.writeAll( |