Files
goose/Justfile
T
2024-11-26 17:05:17 -08:00

29 lines
633 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..."; \
cp ./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 start
# Run server
run-server:
@echo "Running server..."
cargo run -p goose-server