Skip to content

Commit f133b00

Browse files
committed
Fix darwin detection
1 parent ece8408 commit f133b00

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/build.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ class Builder {
9999
*/
100100
private async target(): Promise<"darwin" | "alpine" | "linux"> {
101101
if (!this._target) {
102-
if (process.env.OSTYPE && /^darwin/.test(process.env.OSTYPE)) {
102+
if (os.platform() === "darwin" || (process.env.OSTYPE && /^darwin/.test(process.env.OSTYPE))) {
103103
this._target = "darwin";
104104
} else {
105105
// Alpine's ldd doesn't have a version flag but if you use an invalid flag

0 commit comments

Comments
 (0)