diff options
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" |