Fix CWD path usage in build script
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
5674867adf
commit
165c3fe071
|
@ -15,7 +15,7 @@ const Project = struct {
|
|||
pub fn find_demos(self: Project, b: *std.Build) !void {
|
||||
const demos = b.step("demos", "Build demos");
|
||||
|
||||
var dir = try std.fs.cwd().openDir("demos/", .{
|
||||
var dir = try std.fs.cwd().openDir(b.path("demos/").getPath(b), .{
|
||||
.iterate = true,
|
||||
});
|
||||
|
||||
|
|
|
@ -2,8 +2,6 @@ const gfx = @import("./gfx.zig");
|
|||
|
||||
pub const black = greyscale(0);
|
||||
|
||||
pub const white = greyscale(1);
|
||||
|
||||
pub fn greyscale(v: f32) gfx.Color {
|
||||
return .{v, v, v, 1};
|
||||
}
|
||||
|
@ -11,3 +9,5 @@ pub fn greyscale(v: f32) gfx.Color {
|
|||
pub fn rgb(r: f32, g: f32, b: f32) gfx.Color {
|
||||
return .{r, g, b, 1};
|
||||
}
|
||||
|
||||
pub const white = greyscale(1);
|
||||
|
|
Loading…
Reference in New Issue