2021-07-31 20:49:32 +02:00
|
|
|
#!/usr/bin/env bash
|
2021-07-25 16:55:35 +02:00
|
|
|
#
|
|
|
|
# This script assumes a linux environment
|
|
|
|
|
2021-07-31 23:34:25 +02:00
|
|
|
set -e
|
|
|
|
|
2021-07-25 16:55:35 +02:00
|
|
|
DES=dist/build/uBlock0.browser
|
|
|
|
|
|
|
|
mkdir -p $DES/js
|
|
|
|
cp src/js/base64-custom.js $DES/js
|
|
|
|
cp src/js/biditrie.js $DES/js
|
|
|
|
cp src/js/filtering-context.js $DES/js
|
|
|
|
cp src/js/hntrie.js $DES/js
|
|
|
|
cp src/js/static-filtering-parser.js $DES/js
|
|
|
|
cp src/js/static-net-filtering.js $DES/js
|
|
|
|
cp src/js/static-filtering-io.js $DES/js
|
2021-07-31 14:59:55 +02:00
|
|
|
cp src/js/text-utils.js $DES/js
|
2021-07-25 16:55:35 +02:00
|
|
|
cp src/js/uri-utils.js $DES/js
|
|
|
|
|
|
|
|
mkdir -p $DES/js/wasm
|
|
|
|
cp -R src/js/wasm $DES/js/
|
|
|
|
|
|
|
|
mkdir -p $DES/lib
|
|
|
|
cp -R src/lib/punycode.js $DES/lib/
|
|
|
|
cp -R src/lib/publicsuffixlist $DES/lib/
|
|
|
|
cp -R src/lib/regexanalyzer $DES/lib/
|
|
|
|
|
|
|
|
mkdir -p $DES/data
|
2021-07-29 16:06:49 +02:00
|
|
|
cp -R submodules/uAssets/thirdparties/publicsuffix.org/list/* \
|
2021-07-25 16:55:35 +02:00
|
|
|
$DES/data
|
2021-07-29 16:06:49 +02:00
|
|
|
cp -R submodules/uAssets/thirdparties/easylist-downloads.adblockplus.org/* \
|
2021-07-25 16:55:35 +02:00
|
|
|
$DES/data
|
|
|
|
|
|
|
|
cp platform/browser/*.html $DES/
|
|
|
|
cp platform/browser/*.js $DES/
|
|
|
|
cp LICENSE.txt $DES/
|