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 Utkin44a68a778ca0
diff --cc Makefile
index 5d68c7c82,0bac42aa8..c091e51ca
--- a/Makefile
+++ b/Makefile
@@@ -13,6 -13,6 +13,12 @@@ els
DETECTED_OS := $(shell uname -s)
endif
++ifeq ($(OS),Windows_NT)
++ MKDIR = if not exist "$(1)" mkdir "$(1)"
++else
++ MKDIR = mkdir -p $(1)
++endif
++
# Default target, does nothing
all:
@echo "Specify a target to run"
@@@ -248,11 -248,11 +254,7 @@@ endi
# Debug build for local dev (faster, native arch only)
build-cli-dev:
--ifeq ($(DETECTED_OS),Windows)
- if (!(Test-Path 'src-tauri\resources\bin')) { mkdir 'src-tauri\resources\bin' }"
- mkdir src-tauri\resources\bin 2>NUL
--else
-- mkdir -p src-tauri/resources/bin
--endif
++ $(call MKDIR,'src-tauri/resources/bin')
cd src-tauri && cargo build --features cli --bin jan-cli
install -m755 src-tauri/target/debug/jan-cli src-tauri/resources/bin/jan-cli