2014-10-17 21:44:19 +02:00
|
|
|
#!/bin/bash
|
|
|
|
#
|
|
|
|
# This script assumes a linux environment
|
|
|
|
|
2015-04-09 13:29:07 +02:00
|
|
|
echo "*** uBlock0.chromium: Creating web store package"
|
|
|
|
echo "*** uBlock0.chromium: Copying files"
|
2014-12-18 10:47:14 +01:00
|
|
|
|
2015-04-09 13:29:07 +02:00
|
|
|
DES=dist/build/uBlock0.chromium
|
2015-02-05 23:13:39 +01:00
|
|
|
rm -rf $DES
|
2014-11-16 03:21:13 +01:00
|
|
|
mkdir -p $DES
|
2014-12-18 10:47:14 +01:00
|
|
|
|
2014-11-16 03:21:13 +01:00
|
|
|
cp -R assets $DES/
|
2015-08-17 15:29:11 +02:00
|
|
|
./tools/fix-3p-assets.sh $DES
|
2014-11-16 03:21:13 +01:00
|
|
|
rm $DES/assets/*.sh
|
|
|
|
cp -R src/css $DES/
|
|
|
|
cp -R src/img $DES/
|
|
|
|
cp -R src/js $DES/
|
|
|
|
cp -R src/lib $DES/
|
|
|
|
cp -R src/_locales $DES/
|
2014-12-25 13:28:02 +01:00
|
|
|
cp -R $DES/_locales/nb $DES/_locales/no
|
2014-11-16 03:21:13 +01:00
|
|
|
cp src/*.html $DES/
|
2014-11-24 17:49:11 +01:00
|
|
|
cp platform/chromium/*.js $DES/js/
|
2015-03-15 13:17:38 +01:00
|
|
|
cp -R platform/chromium/img $DES/
|
2015-02-06 16:30:22 +01:00
|
|
|
cp platform/chromium/*.html $DES/
|
2015-10-21 17:53:03 +02:00
|
|
|
cp platform/chromium/*.json $DES/
|
2014-12-18 10:47:14 +01:00
|
|
|
cp LICENSE.txt $DES/
|
|
|
|
|
2015-01-14 08:51:16 +01:00
|
|
|
if [ "$1" = all ]; then
|
2015-04-09 13:29:07 +02:00
|
|
|
echo "*** uBlock0.chromium: Creating package..."
|
2015-01-14 08:51:16 +01:00
|
|
|
pushd $(dirname $DES/)
|
2015-04-09 13:29:07 +02:00
|
|
|
zip uBlock0.chromium.zip -qr $(basename $DES/)/*
|
2015-01-14 08:51:16 +01:00
|
|
|
popd
|
|
|
|
fi
|
|
|
|
|
2015-04-09 13:29:07 +02:00
|
|
|
echo "*** uBlock0.chromium: Package done."
|