@rubytech/create-maxy-lite 0.1.11 → 0.1.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -15,7 +15,7 @@
15
15
  // All external effects go through injected ctx primitives so the sequence,
16
16
  // guards and idempotency are unit-testable; index.mjs wires the real ones.
17
17
 
18
- import { PATHS, launcherPath, ptyLoadCommand } from './paths.mjs'
18
+ import { PATHS, launcherPath, ptyLoadCommand, GUEST_BUILD_ENV } from './paths.mjs'
19
19
 
20
20
  export const STEP_NAMES = ['termux-deps', 'proot', 'ubuntu', 'node', 'toolchain', 'vault-bind', 'npm-app']
21
21
 
@@ -95,8 +95,12 @@ const STEPS = [
95
95
  },
96
96
  {
97
97
  name: 'toolchain',
98
- done: (c) => c.runIn('command -v g++').code === 0,
99
- run: async (c) => ensureOk(await c.runInStream('apt install -y python3 make g++')),
98
+ // Detect + install under the clean Ubuntu env: with Termux's PATH scrubbed, the
99
+ // guard sees only the guest's tools, so it installs Ubuntu's make/g++ (and won't
100
+ // be fooled into skipping by Termux's g++ leaking through the inherited PATH).
101
+ // Verify make AND g++ — node-pty's node-gyp needs make, not just a compiler.
102
+ done: (c) => c.runIn(`${GUEST_BUILD_ENV}; command -v make >/dev/null && command -v g++ >/dev/null`).code === 0,
103
+ run: async (c) => ensureOk(await c.runInStream(`${GUEST_BUILD_ENV}; apt install -y python3 make g++`)),
100
104
  },
101
105
  {
102
106
  name: 'vault-bind',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rubytech/create-maxy-lite",
3
- "version": "0.1.11",
3
+ "version": "0.1.12",
4
4
  "description": "Install maxy-lite on an Android phone: orchestrates proot-distro Ubuntu, glibc Node, claude, the web-chat relay, the vault and its bind-mount — run via npx in bare Termux.",
5
5
  "type": "module",
6
6
  "engines": {