Jan is an open source alternative to ChatGPT that runs 100% offline on your computer.
feat: add 'make agent' target to build Jan agent binary
Akarshan Biswasea73b030c39a
diff --git a/Makefile b/Makefileindex 9d91c95e1..1d6d50ad9 100644--- a/Makefile+++ b/Makefile@@ -272,6 +272,30 @@ elseinstall -m755 src-tauri/target/debug/jan src-tauri/resources/bin/janendif+# Build the Jan agent CLI (the `jan` binary with the `cli` feature)+# The compiled binary lives at two locations after build:+# 1. src-tauri/resources/bin/jan[.exe] (bundled copy)+# 2. src-tauri/target/<triple>/release/jan[.exe] (Cargo output)+agent: build-agent++# Build the jan agent CLI binary (release, platform-aware)+# The binary is compiled into src-tauri/target/<triple>/release/jan[.exe]+# and then installed to src-tauri/resources/bin/jan[.exe] for bundling.+build-agent:+ifeq ($(DETECTED_OS),Windows)+ cd src-tauri && cargo build --release --features cli --bin jan+ copy src-tauri\target\release\jan.exe src-tauri\resources\bin\jan.exe+ @echo "Jan agent built at:"+ @echo " src-tauri/resources/bin/jan.exe"+ @echo " src-tauri/target/release/jan.exe"+else+ cd src-tauri && cargo build --release --features cli --bin jan+ install -m755 src-tauri/target/release/jan src-tauri/resources/bin/jan+ @echo "Jan agent built at:"+ @echo " src-tauri/resources/bin/jan"+ @echo " src-tauri/target/release/jan"+endif+# Buildbuild: install-and-build install-rust-targetsyarn build