mirror of
https://github.com/oleid/gnome-shell-teatime.git
synced 2022-04-29 18:53:50 +00:00
clean-up for new configure system
This commit is contained in:
parent
6cac4a1ba6
commit
83c4bcd90e
32
install.sh
32
install.sh
@ -1,32 +0,0 @@
|
||||
NAME="TeaTime@oleid.mescharet.de"
|
||||
|
||||
if [ "$1" != "global" ] ; then
|
||||
INST_DIR="$HOME/.local/share/gnome-shell/extensions/$NAME"
|
||||
SUDO=""
|
||||
|
||||
echo "Installing extension locally..."
|
||||
else
|
||||
INST_DIR="/usr/share/gnome-shell/extensions/$NAME"
|
||||
SUDO="sudo"
|
||||
|
||||
echo "Installing extension globally..."
|
||||
|
||||
echo "Installing icon"
|
||||
$SUDO cp utilities-teatime.svg /usr/share/icons/hicolor/scalable/apps/
|
||||
$SUDO gtk-update-icon-cache /usr/share/icons/hicolor/
|
||||
fi
|
||||
|
||||
|
||||
echo "Installing extension"
|
||||
$SUDO mkdir -p "$INST_DIR"
|
||||
|
||||
$SUDO cp *.js *.json "$INST_DIR"
|
||||
|
||||
if [ "$1" != "global" ]; then
|
||||
$SUDO cp -ax *.svg schemas "$INST_DIR"
|
||||
glib-compile-schemas "$INST_DIR"/schemas
|
||||
else
|
||||
echo "Installing schema"
|
||||
$SUDO cp schemas/*.xml /usr/share/glib-2.0/schemas/ && \
|
||||
$SUDO glib-compile-schemas /usr/share/glib-2.0/schemas/ 2> /dev/null
|
||||
fi
|
7
pack.sh
7
pack.sh
@ -1,7 +0,0 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# pack for upload to extensions.gnome.org
|
||||
|
||||
today=$(date +"%Y%m%d")
|
||||
|
||||
zip TeaTime@oleid.mescharet.de-$today.zip *.md utils.js prefs.js extension.js install.sh *.svg metadata.json schemas/org.gnome.shell.extensions.teatime.gschema.xml schemas/gschemas.compiled
|
Before Width: | Height: | Size: 3.1 KiB After Width: | Height: | Size: 3.1 KiB |
Loading…
Reference in New Issue
Block a user