Build: Add script for packaging this extension

This commit is contained in:
Julian 2021-06-19 22:26:23 +02:00
parent aba4d06f73
commit cc2098b597
Signed by: julian
GPG Key ID: 094C2AC34192FA11
2 changed files with 12 additions and 0 deletions

1
.gitignore vendored
View File

@ -1,2 +1,3 @@
/node_modules/ /node_modules/
gschemas.compiled gschemas.compiled
top-bar-organizer@julian.gse.jsts.xyz.zip

11
package.sh Executable file
View File

@ -0,0 +1,11 @@
#!/bin/bash
set -e
REAL_BASE_DIR=$( dirname $( readlink -f "$0" ))
glib-compile-schemas "$REAL_BASE_DIR/src/schemas"
rm "$REAL_BASE_DIR/top-bar-organizer@julian.gse.jsts.xyz.zip" || true
cd "$REAL_BASE_DIR/src"
zip -r "$REAL_BASE_DIR/top-bar-organizer@julian.gse.jsts.xyz.zip" *
zip -d "$REAL_BASE_DIR/top-bar-organizer@julian.gse.jsts.xyz.zip" "schemas/org.gnome.shell.extensions.top-bar-organizer.gschema.xml"