Skip to content

Commit a639756

Browse files
committed
feat: update build tool requirements to support macOS with glibtoolize
1 parent 3c49073 commit a639756

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

scripts/build-hamlib.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,9 @@ function isCI() {
146146
function checkBuildTools(platform) {
147147
logStep('1/6', '检查构建工具');
148148

149-
const requiredTools = ['git', 'autoconf', 'automake', 'libtoolize', 'make'];
149+
// macOS 使用 glibtoolize,Linux 使用 libtoolize
150+
const libtoolCmd = platform === 'macos' ? 'glibtoolize' : 'libtoolize';
151+
const requiredTools = ['git', 'autoconf', 'automake', libtoolCmd, 'make'];
150152
const missingTools = [];
151153

152154
for (const tool of requiredTools) {

0 commit comments

Comments
 (0)