From a3a44b064f5818b8ff31f6e27c37f715fa42eab3 Mon Sep 17 00:00:00 2001 From: Wolfgang Meyers Date: Fri, 2 Jan 2026 23:19:39 -0800 Subject: [PATCH] fix: add Android (Termux) platform support MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Treat Android as Linux in platform detection since Termux uses Linux arm64 binaries. This allows the project to build and run on ARM Android devices running Termux. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- scripts/unpack-tools.cjs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/scripts/unpack-tools.cjs b/scripts/unpack-tools.cjs index 5862bd87..b844f9ea 100644 --- a/scripts/unpack-tools.cjs +++ b/scripts/unpack-tools.cjs @@ -17,17 +17,18 @@ const os = require('os'); function getPlatformDir() { const platform = os.platform(); const arch = os.arch(); - + if (platform === 'darwin') { if (arch === 'arm64') return 'arm64-darwin'; if (arch === 'x64') return 'x64-darwin'; - } else if (platform === 'linux') { + } else if (platform === 'linux' || platform === 'android') { + // Treat Android (Termux) as Linux since it uses Linux binaries if (arch === 'arm64') return 'arm64-linux'; if (arch === 'x64') return 'x64-linux'; } else if (platform === 'win32') { if (arch === 'x64') return 'x64-win32'; } - + throw new Error(`Unsupported platform: ${arch}-${platform}`); }