dsh runs on Termux (Android) — with 5 small patches #1588
lilyco-42
started this conversation in
Show Your Plugins!
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
dsh runs on Termux (Android) — with 5 small patches
Hi team! First of all, thank you for
@deepseek-ai/dsh— I'm literally running this session on Termux (Android) right now, powered by dsh.The catch:
npm install -g @deepseek-ai/dshinstalls but does not run on Termux. Five independent incompatibilities have to be fixed. I've packaged everything into a one-command installer: lilyco-42/dsh-termux.The 5 problems and their fixes
node-ptyprocess.config.variables.OS = "android"intoconfig.gypi, making gyp reference the undefinedandroid_ndk_path.OSvariable so gyp inferslinux.koffibase.cccallsstatx(), hidden by bionic below API 30; clang targetsandroid24.--target=aarch64-unknown-linux-android30.sharpandroid-arm64.libvipsand build sharp against it (SHARP_FORCE_GLOBAL_LIBVIPS=1).cordis-plugin-hmrneeds Node--expose-internals;node-addon-require-builtinhas no android prebuild.dshshebang tonode --expose-internals.session-persistence-jsonllink(), forbidden on Android (EACCES).rename()(equally atomic).Install (Android 11+/API 30+)
bash <(curl -fsSL https://raw.githubusercontent.com/lilyco-42/dsh-termux/main/install.sh)Verify
For the maintainers
bin.jsre-exec with--expose-internals, andrename()overlink()in the JSONL session persistence), and would benefit non-Termux users too (e.g.link()also fails on some filesystems).OSdetection, clang target, sharp prebuilds) that could be handled by a small install helper shipped with the CLI.Thanks again for building this — the plugin architecture is a joy to work with on mobile. 🙂
All reactions