justfile helpers (#924)
Co-authored-by: Kalvin C <kalvinnchau@users.noreply.github.com>
This commit is contained in:
@@ -37,13 +37,12 @@ release-windows:
|
|||||||
fi
|
fi
|
||||||
echo "Windows executable and required DLLs created at ./target/x86_64-pc-windows-gnu/release/"
|
echo "Windows executable and required DLLs created at ./target/x86_64-pc-windows-gnu/release/"
|
||||||
|
|
||||||
# Copy binary command
|
copy-binary BUILD_MODE="release":
|
||||||
copy-binary:
|
@if [ -f ./target/{{BUILD_MODE}}/goosed ]; then \
|
||||||
@if [ -f ./target/release/goosed ]; then \
|
echo "Copying goosed binary from target/{{BUILD_MODE}}..."; \
|
||||||
echo "Copying goosed binary to ui/desktop/src/bin with permissions preserved..."; \
|
cp -p ./target/{{BUILD_MODE}}/goosed ./ui/desktop/src/bin/; \
|
||||||
cp -p ./target/release/goosed ./ui/desktop/src/bin/; \
|
|
||||||
else \
|
else \
|
||||||
echo "Release binary not found."; \
|
echo "Binary not found in target/{{BUILD_MODE}}"; \
|
||||||
exit 1; \
|
exit 1; \
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@@ -111,6 +110,19 @@ langfuse-server:
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
./scripts/setup_langfuse.sh
|
./scripts/setup_langfuse.sh
|
||||||
|
|
||||||
|
# Run UI with debug build
|
||||||
|
run-dev:
|
||||||
|
@echo "Building development version..."
|
||||||
|
cargo build
|
||||||
|
@just copy-binary debug
|
||||||
|
@echo "Running UI..."
|
||||||
|
cd ui/desktop && npm run start-gui
|
||||||
|
|
||||||
|
# Install all dependencies (run once after fresh clone)
|
||||||
|
install-deps:
|
||||||
|
cd ui/desktop && npm install
|
||||||
|
cd documentation && yarn
|
||||||
|
|
||||||
# ensure the current branch is "main" or error
|
# ensure the current branch is "main" or error
|
||||||
ensure-main:
|
ensure-main:
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|||||||
Reference in New Issue
Block a user