aboutsummaryrefslogtreecommitdiff
path: root/lib_build.sh
diff options
context:
space:
mode:
Diffstat (limited to 'lib_build.sh')
-rwxr-xr-xlib_build.sh9
1 files changed, 7 insertions, 2 deletions
diff --git a/lib_build.sh b/lib_build.sh
index 0fa656c..7327d52 100755
--- a/lib_build.sh
+++ b/lib_build.sh
@@ -292,6 +292,11 @@ EOF
}
make_zip() (
- cd "$BUILDDIR"
- ${HAKETILO_ZIP:-zip -r} build.zip *;;
+ cd "$PACKDIR"
+ if [ "x$KEY" = x ]; then
+ ${HAKETILO_ZIP:-zip -r} build.zip *;
+ else
+ ${HAKETILO_CHROMIUM:-chromium} --pack-extension="$(realpath inner)" --pack-extension-key="$KEY"
+ mv *.crx build.zip
+ fi
)