From aebb88f9173863a3306b8eaf32c0697f8d7934ce Mon Sep 17 00:00:00 2001 From: James Babcock Date: Sat, 29 Aug 2026 13:26:01 -0700 Subject: [PATCH] Small fixes in README and build script wiring --- README.md | 19 ++++++++----------- package.json | 3 ++- 2 files changed, 10 insertions(+), 12 deletions(-) diff --git a/README.md b/README.md index 92f73153..0bb463ea 100644 --- a/README.md +++ b/README.md @@ -23,17 +23,14 @@ To compile, you will need an Android SDK environment with SDK version 35 installed and licenses accepted, and the ANDROID_HOME pointing to the install. You will need Nativescript installed, and a JDK environment (v21), with the JAVA_HOME environment variable pointed at it. You will also need a reasonably -up to date npm and nodejs installed. +up to date npm and nodejs installed. You can put environment variables in +build_paths.sh and they will be used by all build commands. -To install a version that you compiled, you will need `adb` connected. Go to -Settings>About phone and tap the "Build number" field seven times. Then plug -the phone's USB-C port into your computer, authorize access on the phone, then -run `nativescript run android - -The compile, run - 'npm run build' -To install, run - `nativescript run android --juslaunch` +To install a version that you compiled, you will need developer mode enabled on +your phone, and `adb` connected. To enable developer mode, go to Settings>About +phone and tap the "Build number" field seven times. Then plug the phone's USB-C +port into your computer, authorize access on the phone, and run +`./build_and_run.sh` to install. ## Features @@ -157,7 +154,7 @@ https://github.com/jimrandomh/faceclaw. The Typescript and Java code in this repository runs on your phone, not on the glasses themselves, and (with the narrow exception of the firmware-updating tool), can't hurt your hardware. For changes to the glasses firmware, refer to -[g2flash](https://github.com/jimrandomh/faceclaw); changes there require more +[g2flash](https://github.com/jimrandomh/g2flash); changes there require more caution. Faceclaw is Free Software (GPLv3). Please only contribute code that you wrote diff --git a/package.json b/package.json index 9a8b1ee5..c4a1783e 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,8 @@ "version": "1.0.0", "private": false, "scripts": { - "build": "nativescript build android", + "build": "./build.sh", + "run": "./build_and_run.sh", "release": "scripts/release.sh", "clean": "rm -rf platforms", "test": "tsc -p tests/tsconfig.json && node --test tests/*.test.cjs"