-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall.sh
More file actions
executable file
·213 lines (182 loc) · 6 KB
/
install.sh
File metadata and controls
executable file
·213 lines (182 loc) · 6 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
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
#!/bin/bash
# Argus Overview v2.4 ActionRegistry Edition - Installation Script
set -e
echo "================================================================"
echo "Argus Overview v2.4 ActionRegistry Edition"
echo "Installation Script"
echo "================================================================"
echo ""
# Check if running on Linux
if [[ "$OSTYPE" != "linux-gnu"* ]]; then
echo "Error: This application is designed for Linux only."
exit 1
fi
# Check Python version
echo "Checking Python version..."
PYTHON_VERSION=$(python3 --version 2>&1 | awk '{print $2}')
PYTHON_MAJOR=$(echo $PYTHON_VERSION | cut -d. -f1)
PYTHON_MINOR=$(echo $PYTHON_VERSION | cut -d. -f2)
if [ "$PYTHON_MAJOR" -lt 3 ] || ([ "$PYTHON_MAJOR" -eq 3 ] && [ "$PYTHON_MINOR" -lt 8 ]); then
echo "Error: Python 3.8 or higher is required. Found: $PYTHON_VERSION"
exit 1
fi
echo "✓ Python $PYTHON_VERSION found"
# Check for system dependencies
echo ""
echo "Checking system dependencies..."
MISSING_DEPS=()
for cmd in wmctrl xdotool convert import xwd; do
if ! command -v $cmd &> /dev/null; then
MISSING_DEPS+=($cmd)
else
echo "✓ $cmd found"
fi
done
if [ ${#MISSING_DEPS[@]} -gt 0 ]; then
echo ""
echo "Missing system dependencies: ${MISSING_DEPS[@]}"
echo ""
echo "Please install them using your package manager:"
echo ""
if [ -f /etc/debian_version ]; then
echo " sudo apt-get install wmctrl xdotool imagemagick x11-apps"
elif [ -f /etc/redhat-release ]; then
echo " sudo dnf install wmctrl xdotool ImageMagick xorg-x11-apps"
elif [ -f /etc/arch-release ]; then
echo " sudo pacman -S wmctrl xdotool imagemagick xorg-xwd"
else
echo " Install: wmctrl, xdotool, ImageMagick, x11-apps"
fi
echo ""
read -p "Continue anyway? (y/N) " -n 1 -r
echo
if [[ ! $REPLY =~ ^[Yy]$ ]]; then
exit 1
fi
fi
# Create installation directory
INSTALL_DIR="$HOME/argus-overview"
echo ""
echo "Creating installation directory: $INSTALL_DIR"
if [ -d "$INSTALL_DIR" ]; then
echo "Installation directory already exists."
read -p "Replace it? (y/N) " -n 1 -r
echo
if [[ $REPLY =~ ^[Yy]$ ]]; then
rm -rf "$INSTALL_DIR"
else
echo "Installation cancelled."
exit 0
fi
fi
mkdir -p "$INSTALL_DIR"
echo "✓ Installation directory created"
# Copy files
echo "Copying files..."
cp -r src "$INSTALL_DIR/"
cp -r assets "$INSTALL_DIR/" 2>/dev/null || true
cp requirements.txt "$INSTALL_DIR/"
cp README.md "$INSTALL_DIR/"
echo "✓ Files copied"
# Create virtual environment
echo ""
echo "Creating virtual environment..."
cd "$INSTALL_DIR"
python3 -m venv venv
echo "✓ Virtual environment created"
# Activate and install dependencies
echo "Installing Python dependencies..."
source venv/bin/activate
pip install --upgrade pip > /dev/null 2>&1
pip install -r requirements.txt
echo "✓ Dependencies installed"
# Create launcher script
echo ""
echo "Creating launcher script..."
cat > "$INSTALL_DIR/run.sh" << 'RUNNER'
#!/bin/bash
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
cd "$SCRIPT_DIR"
source venv/bin/activate
PYTHONPATH=src python src/main.py "$@"
RUNNER
chmod +x "$INSTALL_DIR/run.sh"
echo "✓ Launcher script created"
# Install icons to hicolor theme
echo "Installing application icons..."
mkdir -p ~/.local/share/argus-overview/
mkdir -p ~/.local/share/icons/hicolor/32x32/apps
mkdir -p ~/.local/share/icons/hicolor/48x48/apps
mkdir -p ~/.local/share/icons/hicolor/64x64/apps
mkdir -p ~/.local/share/icons/hicolor/128x128/apps
mkdir -p ~/.local/share/icons/hicolor/256x256/apps
mkdir -p ~/.local/share/icons/hicolor/512x512/apps
if [ -f "$INSTALL_DIR/assets/icon.png" ]; then
cp "$INSTALL_DIR/assets/icon.png" ~/.local/share/argus-overview/icon.png
# Install sized icons if available
for size in 32 48 64 128 256 512; do
if [ -f "$INSTALL_DIR/assets/icon_${size}.png" ]; then
cp "$INSTALL_DIR/assets/icon_${size}.png" ~/.local/share/icons/hicolor/${size}x${size}/apps/argus-overview.png
fi
done
# Also copy main icon to 512x512
cp "$INSTALL_DIR/assets/icon.png" ~/.local/share/icons/hicolor/512x512/apps/argus-overview.png
ICON_NAME="argus-overview"
else
ICON_NAME="utilities-system-monitor"
fi
echo "✓ Icons installed"
# Update icon cache
if command -v gtk-update-icon-cache &> /dev/null; then
gtk-update-icon-cache -f -t ~/.local/share/icons/hicolor/ 2>/dev/null || true
fi
# Create desktop entry
echo "Creating desktop entry..."
mkdir -p ~/.local/share/applications
cat > ~/.local/share/applications/argus-overview.desktop << DESKTOP
[Desktop Entry]
Version=2.4
Type=Application
Name=Argus Overview
Comment=Professional Multi-Boxing Tool for EVE Online v2.4
Exec=$INSTALL_DIR/run.sh
Icon=$ICON_NAME
Terminal=false
Categories=Utility;Game;
Keywords=eve;online;multibox;preview;argus;overview;
StartupNotify=true
StartupWMClass=Argus Overview
DESKTOP
echo "✓ Desktop entry created"
# Create config directory
echo "Creating configuration directory..."
mkdir -p ~/.config/argus-overview/profiles
mkdir -p ~/.config/argus-overview/layouts
echo "✓ Configuration directory created"
# Update desktop database
if command -v update-desktop-database &> /dev/null; then
update-desktop-database ~/.local/share/applications 2>/dev/null || true
fi
echo ""
echo "================================================================"
echo "Installation Complete!"
echo "================================================================"
echo ""
echo "Argus Overview v2.4 has been installed to:"
echo " $INSTALL_DIR"
echo ""
echo "To run Argus Overview:"
echo " $INSTALL_DIR/run.sh"
echo ""
echo "Or find it in your applications menu!"
echo ""
echo "Quick Start:"
echo " 1. Launch EVE clients"
echo " 2. Run Argus Overview"
echo " 3. Go to Characters & Teams tab"
echo " 4. Add your characters and create teams"
echo " 5. Use Layouts tab to save window arrangements"
echo " 6. Use Settings Sync tab to copy settings between characters"
echo ""
echo "Fly safe, capsuleer! o7"
echo ""