2014-10-17 21:44:19 +02:00
|
|
|
#!/bin/bash
|
|
|
|
#
|
|
|
|
# This script assumes a linux environment
|
|
|
|
|
2014-11-16 03:21:13 +01:00
|
|
|
echo "*** uBlock.chromium: Creating web store package"
|
|
|
|
echo "*** uBlock.chromium: Copying files"
|
2014-11-16 11:47:47 +01:00
|
|
|
DES=dist/build/uBlock.chromium
|
2014-11-18 16:35:57 +01:00
|
|
|
rm -r $DES
|
2014-11-16 03:21:13 +01:00
|
|
|
mkdir -p $DES
|
|
|
|
cp -R assets $DES/
|
|
|
|
rm $DES/assets/*.sh
|
|
|
|
cp -R src/css $DES/
|
|
|
|
cp -R src/img $DES/
|
|
|
|
cp -R src/js $DES/
|
|
|
|
rm $DES/js/vapi-background.js
|
|
|
|
rm $DES/js/vapi-client.js
|
|
|
|
rm $DES/js/vapi-common.js
|
|
|
|
cp -R src/lib $DES/
|
|
|
|
cp -R src/_locales $DES/
|
|
|
|
cp src/*.html $DES/
|
|
|
|
cp meta/crx/*.js $DES/js/
|
|
|
|
cp meta/crx/manifest.json $DES/
|
|
|
|
echo "*** uBlock.chromium: Package done."
|