-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall.sh
More file actions
executable file
·42 lines (36 loc) · 1.11 KB
/
Copy pathinstall.sh
File metadata and controls
executable file
·42 lines (36 loc) · 1.11 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
#!/bin/bash
set -euo pipefail
UUID="agents-usage-indicator@didmar.github.io"
INSTALL_DIR="$HOME/.local/share/gnome-shell/extensions/$UUID"
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
echo "Installing $UUID..."
# Compile schemas
echo " Compiling schemas..."
glib-compile-schemas "$SCRIPT_DIR/schemas/"
# Clean + create install directory
rm -rf "$INSTALL_DIR"
mkdir -p "$INSTALL_DIR"
# Copy only runtime files (exclude dev tooling and tests).
echo " Copying files..."
rsync -a \
--exclude='node_modules' \
--exclude='tests' \
--exclude='.git' \
--exclude='package.json' \
--exclude='package-lock.json' \
--exclude='eslint.config.js' \
--exclude='*.zip' \
--exclude='install.sh' \
--exclude='README.md' \
--exclude='LICENSE' \
--exclude='screenshot.png' \
"$SCRIPT_DIR/" "$INSTALL_DIR/"
echo ""
echo "Extension installed to: $INSTALL_DIR"
echo ""
echo "To enable the extension:"
echo " gnome-extensions enable $UUID"
echo ""
echo "You may need to restart GNOME Shell:"
echo " On X11: Alt+F2 → type 'r' → Enter"
echo " On Wayland: Log out and log back in"