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 'fix/makefile-windows-support' of https://github.com/thewulf7/jan into fix/makefile-windows-support

Evgenii Utkincda2e640ab07
diff --cc Makefile
index c091e51ca,5d68c7c82..8c216fcd0
--- a/Makefile
+++ b/Makefile
@@@ -254,9 -248,13 +254,13 @@@ endi
# Debug build for local dev (faster, native arch only)
build-cli-dev:
+ $(call MKDIR,'src-tauri/resources/bin')
+ cd src-tauri && cargo build --features cli --bin jan-cli
+ ifeq ($(DETECTED_OS),Windows)
- if (!(Test-Path 'src-tauri\resources\bin')) { mkdir 'src-tauri\resources\bin' }"
++ copy src-tauri\target\debug\jan-cli.exe src-tauri\resources\bin\jan-cli.exe
+ else
- mkdir -p src-tauri/resources/bin
-endif
- cd src-tauri && cargo build --features cli --bin jan-cli
install -m755 src-tauri/target/debug/jan-cli src-tauri/resources/bin/jan-cli
++endif
# Build
build: install-and-build install-rust-targets