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