31 lines
811 B
Bash
Executable File
31 lines
811 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# Build script for the Crypto CLI
|
|
|
|
# Set colors for output
|
|
GREEN='\033[0;32m'
|
|
RED='\033[0;31m'
|
|
YELLOW='\033[1;33m'
|
|
NC='\033[0m' # No Color
|
|
|
|
echo -e "${YELLOW}Building Crypto CLI...${NC}"
|
|
|
|
# Build the CLI
|
|
cargo build --release
|
|
|
|
if [ $? -eq 0 ]; then
|
|
echo -e "${GREEN}Build successful!${NC}"
|
|
echo -e "Binary available at: ${YELLOW}target/release/crypto-cli${NC}"
|
|
|
|
# Create a symlink for easier access
|
|
echo -e "${YELLOW}Creating symlink...${NC}"
|
|
ln -sf "$(pwd)/target/release/crypto-cli" ./crypto-cli
|
|
|
|
echo -e "${GREEN}Done!${NC}"
|
|
echo -e "You can now run the CLI with: ${YELLOW}./crypto-cli${NC}"
|
|
echo -e "Or try the example script: ${YELLOW}./crypto-cli script examples/scripts/crypto_demo.rhai${NC}"
|
|
else
|
|
echo -e "${RED}Build failed!${NC}"
|
|
exit 1
|
|
fi
|