fix Firefox/legacy build

This commit is contained in:
Raymond Hill 2018-04-14 09:36:19 -04:00
parent e2af7c5c55
commit 06ea2fb858
No known key found for this signature in database
GPG key ID: 25E1490B761470C2

View file

@ -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/