-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup_repo.sh
More file actions
executable file
·104 lines (84 loc) · 2.9 KB
/
setup_repo.sh
File metadata and controls
executable file
·104 lines (84 loc) · 2.9 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
#!/bin/bash
# Setup script for Integrated RPA System repository
# This script will copy all necessary files to the repository structure
# and initialize the Git repository
echo "========================================"
echo "Setting up Integrated RPA System Repository"
echo "========================================"
# Define paths
REPO_DIR="/Users/yacinebenhamou/Desktop/integrated-rpa-system"
DESKTOP_DIR="/Users/yacinebenhamou/Desktop"
# Create directory structure
mkdir -p "$REPO_DIR/samples"
mkdir -p "$REPO_DIR/ui"
mkdir -p "$REPO_DIR/scripts"
mkdir -p "$REPO_DIR/output/integrated"
mkdir -p "$REPO_DIR/logs"
# Copy core files
echo "Copying core files..."
cp "$DESKTOP_DIR/integrated_rpa_automation.py" "$REPO_DIR/"
cp "$DESKTOP_DIR/nl_rpa_interface.py" "$REPO_DIR/"
cp "$DESKTOP_DIR/predictive_maintenance.py" "$REPO_DIR/"
# Copy runner scripts
echo "Copying runner scripts..."
cp "$DESKTOP_DIR/run_integrated_rpa.sh" "$REPO_DIR/"
cp "$DESKTOP_DIR/run_nl_rpa.sh" "$REPO_DIR/"
cp "$DESKTOP_DIR/run_predictive_maintenance.sh" "$REPO_DIR/"
# Make scripts executable
chmod +x "$REPO_DIR/run_integrated_rpa.sh"
chmod +x "$REPO_DIR/run_nl_rpa.sh"
chmod +x "$REPO_DIR/run_predictive_maintenance.sh"
chmod +x "$REPO_DIR/setup_repo.sh"
# Copy sample workflows
echo "Copying sample workflows..."
cp "$DESKTOP_DIR/integrated_workflow_sample.json" "$REPO_DIR/samples/"
# Copy UI files (if they exist)
echo "Copying UI files..."
if [ -d "$DESKTOP_DIR/OptimusPrime/ui" ]; then
cp -r "$DESKTOP_DIR/OptimusPrime/ui"/* "$REPO_DIR/ui/"
fi
# Create sample directories for output and logs
touch "$REPO_DIR/output/.gitkeep"
touch "$REPO_DIR/logs/.gitkeep"
# Create a simple installation script
cat > "$REPO_DIR/install.sh" << 'EOF'
#!/bin/bash
echo "========================================"
echo "Installing Integrated RPA System"
echo "========================================"
# Create conda environment
echo "Creating conda environment..."
conda env create -f environment.yml
# Activate environment
echo "Activating environment..."
source $(conda info --base)/etc/profile.d/conda.sh
conda activate agent_f1_env
# Install additional dependencies
echo "Installing additional dependencies..."
pip install -U langmem crewai
# Install UI dependencies
if [ -d "ui" ]; then
echo "Installing UI dependencies..."
cd ui
npm install
cd ..
fi
echo "Installation complete!"
echo "Run './run_integrated_rpa.sh' to start the system"
EOF
chmod +x "$REPO_DIR/install.sh"
# Initialize Git repository
echo "Initializing Git repository..."
cd "$REPO_DIR"
git init
git add .
git commit -m "Initial commit: Integrated RPA System"
echo "Repository setup complete!"
echo "To deploy to GitHub:"
echo "1. Create a new repository on GitHub"
echo "2. Run the following commands:"
echo " cd $REPO_DIR"
echo " git remote add origin https://github.com/yourusername/integrated-rpa-system.git"
echo " git push -u origin main"
echo ""
echo "Repository is ready at: $REPO_DIR"