diff options
author | Wojtek Kosior <koszko@koszko.org> | 2021-12-08 19:01:50 +0100 |
---|---|---|
committer | Wojtek Kosior <koszko@koszko.org> | 2021-12-08 19:01:50 +0100 |
commit | 3a90084ec14a15d9b76fa4bfed9e85f15a09dad7 (patch) | |
tree | 0e588240ff95f47c4387a82d1dcc59bda2a8d79a /build.sh | |
parent | c8fa3926b9ae2f837fcd6950e10e0852d89c4120 (diff) | |
download | browser-extension-3a90084ec14a15d9b76fa4bfed9e85f15a09dad7.tar.gz browser-extension-3a90084ec14a15d9b76fa4bfed9e85f15a09dad7.zip |
facilitate initialization of IndexedDB for use by Haketilo
Diffstat (limited to 'build.sh')
-rwxr-xr-x | build.sh | 11 |
1 files changed, 1 insertions, 10 deletions
@@ -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" |