fix(install): incremental support for windows (#7991)

* update for windows

* use correct sizes

* mode

* fchmod and correct error checking

* some progress

* walker_skippable.zig for windows

* no segfault

* comptime only

* normalize

* create files in .bin

* bun.sys.write

* string formatters in bun.fmt, diriterator enum

* isAllASCII comptime

* update more

* some cleanup

* fix 1

* fix 2

* simlink

* cast

* remove normalize

* to zig err

* update fchmod

* fixup

* fix running bin files

* --bun for running binaries

* --bun for scripts

* remove binary linking

* update

* remove todo

* todos

* fix

* simlink

* cast

* more cast
This commit is contained in:
Dylan Conway
2024-01-11 22:00:47 -08:00
committed by GitHub
parent 9846383b01
commit 98d253d9bb
45 changed files with 1943 additions and 1571 deletions

View File

@@ -315,6 +315,7 @@ pub const RunCommand = struct {
}
var child_process = std.ChildProcess.init(&argv, allocator);
var buf_map = try env.map.cloneToEnvMap(allocator);
child_process.env_map = &buf_map;
@@ -581,7 +582,7 @@ pub const RunCommand = struct {
} else {
ctx.log.printForLogLevelWithEnableAnsiColors(Output.errorWriter(), false) catch {};
}
Output.prettyErrorln("<r><red>error<r><d>:<r> <b>{s}<r> loading directory {}", .{ @errorName(err), strings.QuotedFormatter{ .text = this_bundler.fs.top_level_dir } });
Output.prettyErrorln("<r><red>error<r><d>:<r> <b>{s}<r> loading directory {}", .{ @errorName(err), bun.fmt.QuotedFormatter{ .text = this_bundler.fs.top_level_dir } });
Output.flush();
return err;
} orelse {