Fix darwin detection
This commit is contained in:
parent
ece840834d
commit
f133b00851
@ -99,7 +99,7 @@ class Builder {
|
|||||||
*/
|
*/
|
||||||
private async target(): Promise<"darwin" | "alpine" | "linux"> {
|
private async target(): Promise<"darwin" | "alpine" | "linux"> {
|
||||||
if (!this._target) {
|
if (!this._target) {
|
||||||
if (process.env.OSTYPE && /^darwin/.test(process.env.OSTYPE)) {
|
if (os.platform() === "darwin" || (process.env.OSTYPE && /^darwin/.test(process.env.OSTYPE))) {
|
||||||
this._target = "darwin";
|
this._target = "darwin";
|
||||||
} else {
|
} else {
|
||||||
// Alpine's ldd doesn't have a version flag but if you use an invalid flag
|
// Alpine's ldd doesn't have a version flag but if you use an invalid flag
|
||||||
|
Reference in New Issue
Block a user