-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.command
More file actions
executable file
·51 lines (42 loc) · 1.29 KB
/
setup.command
File metadata and controls
executable file
·51 lines (42 loc) · 1.29 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
#!/bin/bash
# SignetPanel Setup - Run this first!
# Creates venv, installs dependencies, and configures your environment.
cd "$(dirname "$0")"
echo "========================================="
echo " SignetPanel Setup"
echo "========================================="
echo ""
# Create venv
if [ ! -d ".venv" ]; then
echo "Creating Python virtual environment..."
python3 -m venv .venv
fi
source .venv/bin/activate
pip install -q -r requirements.txt
echo "Dependencies installed."
echo ""
# Config
if [ ! -f "config.env" ]; then
echo "First-time setup — creating config.env"
echo ""
read -p " Your GitHub username: " gh_user
read -p " Path to your signetai checkout [~/signetai]: " repo_path
repo_path="${repo_path:-$HOME/signetai}"
cat > config.env << CONF
# SignetPanel Configuration
GITHUB_USER=${gh_user}
SIGNET_REPO=Signet-AI/signetai
SIGNET_REPO_PATH=${repo_path}
CONF
echo ""
echo " Config saved to config.env"
echo " (This file is gitignored — your username stays local.)"
else
echo "config.env already exists — skipping."
fi
echo ""
echo "Setup complete! You can now run:"
echo " ./SignetPanel.command — Start the LED panel display"
echo " ./GreptileWatcher.command — Auto-fix Greptile PR comments"
echo ""
read -p "Press Enter to close."