fix build script for Opera

This commit is contained in:
Raymond Hill 2018-04-24 17:15:18 -04:00
parent 427d0fd0ff
commit 4585287187
No known key found for this signature in database
GPG Key ID: 25E1490B761470C2
1 changed files with 5 additions and 2 deletions

View File

@ -24,11 +24,14 @@ cp platform/chromium/*.json $DES/
cp LICENSE.txt $DES/
echo "*** uBlock0.opera: concatenating content scripts"
cat $DES/js/vapi-usercss.js > /tmp/contentscript.js
cat $DES/js/vapi-usercss.pseudo.js > /tmp/contentscript.js
echo >> /tmp/contentscript.js
grep -v "^'use strict';$" $DES/js/vapi-usercss.real.js >> /tmp/contentscript.js
echo >> /tmp/contentscript.js
grep -v "^'use strict';$" $DES/js/contentscript.js >> /tmp/contentscript.js
mv /tmp/contentscript.js $DES/js/contentscript.js
rm $DES/js/vapi-usercss.js
rm $DES/js/vapi-usercss.pseudo.js
rm $DES/js/vapi-usercss.real.js
# Opera-specific
cp platform/opera/manifest.json $DES/