Build: Add script for packaging this extension

This commit is contained in:
June 2021-06-19 22:26:23 +02:00
commit cc2098b597
No known key found for this signature in database
GPG key ID: 094C2AC34192FA11
2 changed files with 12 additions and 0 deletions

1
.gitignore vendored
View file

@ -1,2 +1,3 @@
/node_modules/
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"