Skip to content

Commit

Permalink
Rework UI in preparation for multiple sources
Browse files Browse the repository at this point in the history
  • Loading branch information
Lucki authored and ifl0w committed Dec 14, 2022
1 parent 6bc7cdb commit b90bfb7
Show file tree
Hide file tree
Showing 17 changed files with 899 additions and 1,400 deletions.
26 changes: 18 additions & 8 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,21 @@
BASEDIR="[email protected]"
ZIPNAME="$BASEDIR.zip"

rm $ZIPNAME
rm $BASEDIR/schemas/gschemas.compiled
rm $BASEDIR/wallpapers/*
glib-compile-schemas $BASEDIR/schemas/

cd $BASEDIR
zip -r $ZIPNAME .
mv $ZIPNAME ..
rm "$ZIPNAME"
rm "$BASEDIR/schemas/gschemas.compiled"
rm "$BASEDIR/wallpapers/"*
glib-compile-schemas "$BASEDIR/schemas/"

# cd "$BASEDIR/ui" || exit 1
blueprint-compiler batch-compile "$BASEDIR/ui" "$BASEDIR/ui" \
"$BASEDIR/ui/generic_json.blp" \
"$BASEDIR/ui/page_general.blp" \
"$BASEDIR/ui/page_sources.blp" \
"$BASEDIR/ui/reddit.blp" \
"$BASEDIR/ui/source_row.blp" \
"$BASEDIR/ui/unsplash.blp" \
"$BASEDIR/ui/wallhaven.blp"

cd "$BASEDIR" || exit 1
zip -r "$ZIPNAME" .
mv "$ZIPNAME" ..
4 changes: 3 additions & 1 deletion install.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
#!/bin/bash

datahome="${XDG_DATA_HOME:-HOME/.local/share}"

extensionFolder="[email protected]"
sourcepath="$PWD/$extensionFolder"
targetpath="/home/$USER/.local/share/gnome-shell/extensions"
targetpath="$datahome/gnome-shell/extensions"

if [ "$1" = "uninstall" ]; then
echo "# Removing $targetpath/$extensionFolder"
Expand Down
Loading

0 comments on commit b90bfb7

Please sign in to comment.