Skip to content

Commit 59c4301

Browse files
committed
feat: update platform-specific tools in build script for macOS and Linux
1 parent 57d4bb2 commit 59c4301

1 file changed

Lines changed: 9 additions & 7 deletions

File tree

scripts/build-all.js

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -77,15 +77,17 @@ function checkBuildTools() {
7777
'node-gyp': 'node-gyp (npm install -g node-gyp)'
7878
};
7979

80-
const platformTools = {
81-
'win32': [],
82-
'darwin': ['autoconf', 'automake', 'libtool'],
83-
'linux': ['autoconf', 'automake', 'libtool', 'make']
84-
};
80+
// Platform-specific tools - use correct libtool command names
81+
let platformSpecific = [];
82+
if (process.platform === 'darwin') {
83+
// macOS uses glibtoolize
84+
platformSpecific = ['autoconf', 'automake', 'glibtoolize'];
85+
} else if (process.platform === 'linux') {
86+
// Linux uses libtoolize
87+
platformSpecific = ['autoconf', 'automake', 'libtoolize', 'make'];
88+
}
8589

8690
const tools = { ...requiredTools };
87-
const platformSpecific = platformTools[process.platform] || [];
88-
8991
platformSpecific.forEach(tool => {
9092
tools[tool] = tool;
9193
});

0 commit comments

Comments
 (0)