Skip to content

armgit / jan

Public Imported from GitHub
0

Jan is an open source alternative to ChatGPT that runs 100% offline on your computer.

Merge branch 'main' into fix/makefile-windows-support

Evgenii Utkin3ae65ede6845
diff --cc Makefile
index ac8a45107,a2b91e282..d97886d9b
--- a/Makefile
+++ b/Makefile
@@@ -187,43 -172,10 +185,9 @@@ els
@echo "Skipping MLX server build (macOS only)"
endif
- # Build Apple Foundation Models server (macOS 26+ only) - always builds
- build-foundation-models-server:
- ifeq ($(DETECTED_OS),Darwin)
- @echo "Building Foundation Models server for macOS 26+..."
- cd foundation-models-server && swift build -c release
- @echo "Copying foundation-models-server binary..."
- @cp foundation-models-server/.build/release/foundation-models-server src-tauri/resources/bin/foundation-models-server
- @chmod +x src-tauri/resources/bin/foundation-models-server
- @echo "Foundation Models server built and copied successfully"
- @echo "Checking for code signing identity..."
- @SIGNING_IDENTITY=$$(security find-identity -v -p codesigning | grep "Developer ID Application" | head -1 | sed 's/.*"\(.*\)".*/\1/'); \
- if [ -n "$$SIGNING_IDENTITY" ]; then \
- echo "Signing foundation-models-server with identity: $$SIGNING_IDENTITY"; \
- codesign --force --options runtime --timestamp --sign "$$SIGNING_IDENTITY" src-tauri/resources/bin/foundation-models-server; \
- echo "Code signing completed successfully"; \
- else \
- echo "Warning: No Developer ID Application identity found. Skipping code signing."; \
- fi
- else
- @echo "Skipping Foundation Models server build (macOS only)"
- endif
-
- # Build Foundation Models server only if not already present (for dev)
- build-foundation-models-server-if-exists:
- ifeq ($(DETECTED_OS),Darwin)
- @if [ -f "src-tauri/resources/bin/foundation-models-server" ]; then \
- echo "Foundation Models server already exists at src-tauri/resources/bin/foundation-models-server, skipping build..."; \
- else \
- make build-foundation-models-server; \
- fi
- else
- @echo "Skipping Foundation Models server build (macOS only)"
- endif
--
# Build jan CLI (release, platform-aware) → src-tauri/resources/bin/jan[.exe]
build-cli:
-ifeq ($(shell uname -s),Darwin)
+ifeq ($(DETECTED_OS),Darwin)
cd src-tauri && cargo build --release --features cli --bin jan-cli --target aarch64-apple-darwin
cd src-tauri && cargo build --release --features cli --bin jan-cli --target x86_64-apple-darwin
lipo -create \