aboutsummaryrefslogtreecommitdiff
path: root/build.sh
diff options
context:
space:
mode:
authorWojtek Kosior <koszko@koszko.org>2021-12-08 19:01:50 +0100
committerWojtek Kosior <koszko@koszko.org>2021-12-08 19:01:50 +0100
commit3a90084ec14a15d9b76fa4bfed9e85f15a09dad7 (patch)
tree0e588240ff95f47c4387a82d1dcc59bda2a8d79a /build.sh
parentc8fa3926b9ae2f837fcd6950e10e0852d89c4120 (diff)
downloadbrowser-extension-3a90084ec14a15d9b76fa4bfed9e85f15a09dad7.tar.gz
browser-extension-3a90084ec14a15d9b76fa4bfed9e85f15a09dad7.zip
facilitate initialization of IndexedDB for use by Haketilo
Diffstat (limited to 'build.sh')
-rwxr-xr-xbuild.sh11
1 files changed, 1 insertions, 10 deletions
diff --git a/build.sh b/build.sh
index abaed47..d0958a1 100755
--- a/build.sh
+++ b/build.sh
@@ -123,16 +123,7 @@ s^_CONTENTSCRIPTS_^$CONTENTSCRIPTS^" \
fi
done
- # A hack to insert the contents of default_settings.json at the appropriate
- # location in background/main.js. Uses an internal sed expression to escape
- # and indent the JSON file for use in the external sed expression.
- sed -i 's/^ `DEFAULT SETTINGS`$/'"$(sed -E 's/([\\\&\/])/\\\1/g; s/^/ /; s/$/\\/' < default_settings.json) "/g "$BUILDDIR"/background/main.js
-
- if [ "$BROWSER" = "chromium" ]; then
- cp CHROMIUM_exports_init.js "$BUILDDIR"/exports_init.js
- else
- cp MOZILLA_exports_init.js "$BUILDDIR"/exports_init.js
- fi
+ ./write_exports_init.sh "$BROWSER" "$BUILDDIR" default_settings.json
cp -r copyright licenses/ "$BUILDDIR"
cp dummy "$BUILDDIR"