hermes_agent/build.sh
2026-04-16 08:08:28 +08:00

24 lines
624 B
Bash
Executable File

#!/bin/bash
# hermes_agent build script
set -e
echo "Building Hermes Agent module..."
# Create symbolic links for wwwroot files
MODULE_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
MAIN_WWWROOT="$MODULE_DIR/../wwwroot"
# Ensure main wwwroot exists
mkdir -p "$MAIN_WWWROOT"
# Link module wwwroot files to main application wwwroot
for file in "$MODULE_DIR"/wwwroot/*; do
if [ -f "$file" ]; then
filename=$(basename "$file")
ln -sf "$file" "$MAIN_WWWROOT/hermes_agent_$filename"
echo "Linked $filename to main wwwroot"
fi
done
echo "Hermes Agent module build completed successfully!"