Dev: Update "dep-codex" target in Makefile

Signed-off-by: Michael Mayer <michael@photoprism.app>
This commit is contained in:
Michael Mayer 2025-09-12 13:11:03 +02:00
parent 886794874d
commit 7bed1cd46a

View file

@ -253,7 +253,12 @@ dep-js:
# (cd frontend && npx playwright install chromium)
dep-codex:
@echo "Installing latest Codex CLI..."
sudo npm i -g "@openai/codex@latest"
@[ -n "$(CODEX_HOME)" ] && [ "$(CODEX_HOME)" != "/" ] && install -d -m 700 -- "$(CODEX_HOME)" || true
@if command -v sudo >/dev/null 2>&1; then \
sudo npm install -g --location=global --no-fund --no-audit "@openai/codex@latest"; \
else \
npm install -g --location=global --no-fund --no-audit "@openai/codex@latest"; \
fi
dep-go:
go build -v ./...
dep-upgrade: