Files
goose/Justfile
T
Michael Neale dc7fc6acbf chore: Cargo build tokenizers (#491)
Co-authored-by: Alec Thomas <alec@swapoff.org>
2024-12-18 14:14:14 +11:00

28 lines
670 B
Makefile

# Justfile
# Default release command
release:
@echo "Building release version..."
cargo build --release
@just copy-binary
# Copy binary command
copy-binary:
@if [ -f ./target/release/goosed ]; then \
echo "Copying goosed binary to ui/desktop/src/bin with permissions preserved..."; \
cp -p ./target/release/goosed ./ui/desktop/src/bin/; \
else \
echo "Release binary not found."; \
exit 1; \
fi
# Run UI with latest
run-ui:
@just release
@echo "Running UI..."
cd ui/desktop && npm install && npm run start-gui
# Run server
run-server:
@echo "Running server..."
cargo run -p goose-server