From 3a90084ec14a15d9b76fa4bfed9e85f15a09dad7 Mon Sep 17 00:00:00 2001 From: Wojtek Kosior Date: Wed, 8 Dec 2021 19:01:50 +0100 Subject: facilitate initialization of IndexedDB for use by Haketilo --- build.sh | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) (limited to 'build.sh') 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" -- cgit v1.2.3