forked from StephenPCG/DGSE
-
Notifications
You must be signed in to change notification settings - Fork 1
/
install.sh
executable file
·34 lines (28 loc) · 1.24 KB
/
install.sh
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
#!/bin/bash
## install all extensions except for user-theme and system-monitor,
## which need special post procedure
for ext in */metadata.json; do
ext_path=$(dirname $ext)
tools/install-extension $ext_path;
tools/enable-extension $(basename $ext_path)
done
## install user-theme
sudo cp user-theme/org.gnome.shell.extensions.user-theme.gschema.xml \
/usr/share/glib-2.0/schemas/
tools/install-extension user-theme/user-theme@gnome-shell-extensions.gnome.org
tools/enable-extension user-theme@gnome-shell-extensions.gnome.org
## install system-monitor
sudo cp system-monitor/org.gnome.shell.extensions.system-monitor.gschema.xml \
/usr/share/glib-2.0/schemas/
sudo cp system-monitor/system-monitor-applet-config /usr/bin/
sudo cp system-monitor/system-monitor-applet-config.desktop /usr/share/applications/
for dir in system-monitor/po/*/; do
lang=$(basename $dir)
sudo mkdir -p /usr/share/locale/$lang/LC_MESSAGES/
sudo msgfmt $dir/system-monitor-applet.po -o /usr/share/locale/$lang/LC_MESSAGES/system-monitor-applet.mo
done
tools/install-extension system-monitor/system-monitor@linuxdeepin.com
tools/enable-extension system-monitor@linuxdeepin.com
sudo glib-compile-schemas /usr/share/glib-2.0/schemas/
echo
tools/list-extensions