-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcli
More file actions
executable file
·48 lines (43 loc) · 709 Bytes
/
cli
File metadata and controls
executable file
·48 lines (43 loc) · 709 Bytes
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
#!/bin/bash
NAME="focus-mode"
DOMAIN="exposedcat"
SLUG="$NAME@$DOMAIN"
EXTENSIONS="/home/$USER/.local/share/gnome-shell/extensions"
build() {
npx tsc
cp -r metadata.json src/styles schemas dist
glib-compile-schemas ./dist/schemas
}
install() {
mkdir -p $EXTENSIONS
rm -rf $EXTENSIONS/$SLUG
mv dist $EXTENSIONS/$SLUG
}
case $1 in
install)
npm i
;;
clean)
rm -rf dist node_modules $NAME.zip
;;
build)
build
;;
pack)
rm -f $NAME.zip
pushd dist
zip "../$NAME.zip" -9r ./*.js ./*.css ./**/*.js ./**/*.css metadata.json
popd
;;
install)
install
;;
dev)
build
install
dbus-run-session -- gnome-shell --nested --wayland
;;
*)
echo "Unknown command '$1'"
;;
esac