Skip to content

Desktop app that records your on-screen work session and uses the GitHub Copilot SDK to reconstruct it as an intent + ordered steps, then builds a reusable Skill or Automation for Microsoft Autopilots like Scout, Microsoft Copilot Cowork, or Copilot Studio.

Match app's Copilot CLI detection in macOS/Linux installer

adileie29adf2d7328
diff --git a/install.sh b/install.sh
index ebc479a..3419d39 100755
--- a/install.sh
+++ b/install.sh
@@ -39,6 +39,18 @@ warn() { printf '\033[1;33mwarning:\033[0m %s\n' "$*" >&2; }
die() { printf '\033[1;31merror:\033[0m %s\n' "$*" >&2; exit 1; }
have() { command -v "$1" >/dev/null 2>&1; }
+# Detect a usable Copilot CLI the way the Electron app does. The app uses the
+# platform binary bundled in node_modules (installed by npm), so that is the
+# real signal — not a `copilot` on PATH. Fall back to the desktop app or PATH.
+copilot_available() {
+ local plat arch
+ case "$(uname -s)" in Darwin) plat="darwin" ;; *) plat="linux" ;; esac
+ case "$(uname -m)" in arm64|aarch64) arch="arm64" ;; *) arch="x64" ;; esac
+ [ -e "$INSTALL_DIR/node_modules/@github/copilot-$plat-$arch/copilot" ] && return 0
+ [ -d "/Applications/GitHub Copilot.app" ] && return 0
+ have copilot
+}
+
sha256() { # print the sha256 of a file, or nothing if it doesn't exist
[ -f "$1" ] || return 0
if have shasum; then shasum -a 256 "$1" | awk '{print $1}'
@@ -128,10 +140,6 @@ ensure_node() {
}
# --- fetch source ----------------------------------------------------------
-have copilot || warn "GitHub Copilot CLI ('copilot') not found on PATH. The app will \
-launch, but recording analysis and skill/automation building need it — install it and \
-sign in first."
-
version_token=""
if have git; then
if [ ! -d "$INSTALL_DIR/.git" ]; then
@@ -179,6 +187,11 @@ else
info "Dependencies already up to date — skipping npm install."
fi
+# --- check for Copilot CLI (bundled, desktop app, or PATH) -----------------
+copilot_available || warn "No Copilot CLI found. Install GitHub Copilot \
+(https://github.com/features/copilot) or ensure the bundled package installed \
+correctly. The app will launch, but recording analysis needs it."
+
# --- build (only when the source or dependencies changed) ------------------
build_stamp="$INSTALL_DIR/.skill-recorder-build.sha"
build_now="${version_token}:${deps_now}"