mirror of https://github.com/gorhill/uBlock.git
fix Firefox/legacy build
This commit is contained in:
parent
e2af7c5c55
commit
06ea2fb858
|
@ -21,7 +21,7 @@ mv $DES/img/icon_128.png $DES/icon.png
|
||||||
cp platform/firefox/css/* $DES/css/
|
cp platform/firefox/css/* $DES/css/
|
||||||
cp platform/firefox/polyfill.js $DES/js/
|
cp platform/firefox/polyfill.js $DES/js/
|
||||||
cp platform/firefox/vapi-*.js $DES/js/
|
cp platform/firefox/vapi-*.js $DES/js/
|
||||||
cp platform/webext/vapi-usercss.js $DES/js/
|
cp platform/chromium/vapi-usercss.real.js $DES/js/
|
||||||
cp platform/firefox/bootstrap.js $DES/
|
cp platform/firefox/bootstrap.js $DES/
|
||||||
cp platform/firefox/processScript.js $DES/
|
cp platform/firefox/processScript.js $DES/
|
||||||
cp platform/firefox/frame*.js $DES/
|
cp platform/firefox/frame*.js $DES/
|
||||||
|
@ -32,11 +32,11 @@ cp platform/firefox/*.xul $DES/
|
||||||
cp LICENSE.txt $DES/
|
cp LICENSE.txt $DES/
|
||||||
|
|
||||||
echo "*** uBlock0.firefox: concatenating content scripts"
|
echo "*** uBlock0.firefox: concatenating content scripts"
|
||||||
cat $DES/js/vapi-usercss.js > /tmp/contentscript.js
|
cat $DES/js/vapi-usercss.real.js > /tmp/contentscript.js
|
||||||
echo >> /tmp/contentscript.js
|
echo >> /tmp/contentscript.js
|
||||||
grep -v "^'use strict';$" $DES/js/contentscript.js >> /tmp/contentscript.js
|
grep -v "^'use strict';$" $DES/js/contentscript.js >> /tmp/contentscript.js
|
||||||
mv /tmp/contentscript.js $DES/js/contentscript.js
|
mv /tmp/contentscript.js $DES/js/contentscript.js
|
||||||
rm $DES/js/vapi-usercss.js
|
rm $DES/js/vapi-usercss.real.js
|
||||||
|
|
||||||
echo "*** uBlock0.firefox: Generating meta..."
|
echo "*** uBlock0.firefox: Generating meta..."
|
||||||
python tools/make-firefox-meta.py $DES/
|
python tools/make-firefox-meta.py $DES/
|
||||||
|
|
Loading…
Reference in New Issue