mirror of
https://github.com/gorhill/uBlock.git
synced 2024-11-10 01:02:08 +01:00
update packaging scripts for https://github.com/uBlockOrigin/uAssets repo
This commit is contained in:
parent
ebcafc8db2
commit
cad3c5f5cb
5 changed files with 47 additions and 15 deletions
|
@ -295,6 +295,13 @@ var toRepoURL = function(path) {
|
|||
return projectRepositoryRoot + path;
|
||||
}
|
||||
|
||||
if ( path.startsWith('assets/checksums.txt') ) {
|
||||
return path.replace(
|
||||
/^assets\/checksums.txt/,
|
||||
assetsRepositoryRoot + 'checksums/ublock0.txt'
|
||||
);
|
||||
}
|
||||
|
||||
if ( path.startsWith('assets/thirdparties/') ) {
|
||||
return path.replace(
|
||||
/^assets\/thirdparties\//,
|
||||
|
|
25
tools/make-assets.sh
Executable file
25
tools/make-assets.sh
Executable file
|
@ -0,0 +1,25 @@
|
|||
#!/usr/bin/env bash
|
||||
#
|
||||
# This script assumes a linux environment
|
||||
|
||||
DES=$1/assets
|
||||
|
||||
echo "*** uBlock0.chromium: packaging assets in $DES"
|
||||
|
||||
rm -rf $DES
|
||||
mkdir $DES
|
||||
|
||||
mkdir $DES/thirdparties
|
||||
cp -R ../uAssets/thirdparties/easylist-downloads.adblockplus.org $DES/thirdparties/
|
||||
cp -R ../uAssets/thirdparties/mirror1.malwaredomains.com $DES/thirdparties/
|
||||
cp -R ../uAssets/thirdparties/pgl.yoyo.org $DES/thirdparties/
|
||||
cp -R ../uAssets/thirdparties/publicsuffix.org $DES/thirdparties/
|
||||
cp -R ../uAssets/thirdparties/www.malwaredomainlist.com $DES/thirdparties/
|
||||
|
||||
mkdir $DES/ublock
|
||||
cp -R ../uAssets/filters/* $DES/ublock/
|
||||
cp -R ./assets/ublock/filter-lists.json $DES/ublock/
|
||||
|
||||
cp ../uAssets/checksums/ublock0.txt $DES/checksums.txt
|
||||
|
||||
echo "*** uBlock0.chromium: packaging assets: done."
|
|
@ -9,8 +9,8 @@ DES=dist/build/uBlock0.chromium
|
|||
rm -rf $DES
|
||||
mkdir -p $DES
|
||||
|
||||
cp -R assets $DES/
|
||||
rm $DES/assets/*.sh
|
||||
./tools/make-assets.sh $DES
|
||||
|
||||
cp -R src/css $DES/
|
||||
cp -R src/img $DES/
|
||||
cp -R src/js $DES/
|
||||
|
|
|
@ -8,8 +8,8 @@ DES=dist/build/uBlock0.firefox
|
|||
rm -rf $DES
|
||||
mkdir -p $DES
|
||||
|
||||
cp -R assets $DES/
|
||||
rm $DES/assets/*.sh
|
||||
./tools/make-assets.sh $DES
|
||||
|
||||
cp -R src/css $DES/
|
||||
cp -R src/img $DES/
|
||||
cp -R src/js $DES/
|
||||
|
|
|
@ -9,8 +9,8 @@ DES=dist/build/uBlock0.opera
|
|||
rm -r $DES
|
||||
mkdir -p $DES
|
||||
|
||||
cp -R assets $DES/
|
||||
rm $DES/assets/*.sh
|
||||
./tools/make-assets.sh $DES
|
||||
|
||||
cp -R src/css $DES/
|
||||
cp -R src/img $DES/
|
||||
cp -R src/js $DES/
|
||||
|
|
Loading…
Reference in a new issue