Skip to content

Commit bff93ce

Browse files
authored
src: fix --build-sea default executable path
1 parent 413dffc commit bff93ce

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/node_sea_bin.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -388,7 +388,7 @@ ExitCode BuildSingleExecutable(const std::string& sea_config_path,
388388

389389
SeaConfig config = opt_config.value();
390390
if (config.executable_path.empty()) {
391-
config.executable_path = args[0];
391+
config.executable_path = Environment::GetExecPath(args);
392392
}
393393

394394
// Get file permissions from source executable to copy over later.

0 commit comments

Comments
 (0)