mirror of https://github.com/gorhill/uBlock.git
this fixes https://github.com/chrisaljoudi/uBlock/issues/1219 for Firefox
This commit is contained in:
parent
66a5d34860
commit
b9e07a16e3
|
@ -31,7 +31,7 @@
|
|||
|
||||
let bgProcess;
|
||||
let version;
|
||||
const hostName = 'ublock';
|
||||
const hostName = 'ublock0';
|
||||
const restartListener = {
|
||||
get messageManager() {
|
||||
return Components.classes['@mozilla.org/parentprocessmessagemanager;1']
|
||||
|
|
|
@ -1 +1 @@
|
|||
content ublock ./
|
||||
content ublock0 ./
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<r:RDF xmlns:r="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://www.mozilla.org/2004/em-rdf#">
|
||||
<r:Description about="urn:mozilla:install-manifest">
|
||||
<id>{{2b10c1c8-a11f-4bad-fe9c-1c11e82cac42}}</id>
|
||||
<id>uBlock0@raymondhill.net</id>
|
||||
<version>{version}</version>
|
||||
<name>{name}</name>
|
||||
<description>{description}</description>
|
||||
|
|
|
@ -44,7 +44,7 @@ vAPI.fennec = Services.appinfo.ID === '{aa3c5121-dab2-40e2-81ca-7ea25febc110}';
|
|||
/******************************************************************************/
|
||||
|
||||
vAPI.app = {
|
||||
name: 'uBlock',
|
||||
name: 'uBlock₀',
|
||||
version: location.hash.slice(1)
|
||||
};
|
||||
|
||||
|
@ -1856,7 +1856,7 @@ vAPI.contextMenu.remove = function() {
|
|||
/******************************************************************************/
|
||||
|
||||
var optionsObserver = {
|
||||
addonId: '{2b10c1c8-a11f-4bad-fe9c-1c11e82cac42}',
|
||||
addonId: 'uBlock0@raymondhill.net',
|
||||
|
||||
register: function() {
|
||||
Services.obs.addObserver(this, 'addon-options-displayed', false);
|
||||
|
|
|
@ -160,7 +160,7 @@ vAPI.messaging = {
|
|||
vAPI.messaging.listeners[message.requestId] = callback;
|
||||
}
|
||||
|
||||
sendAsyncMessage('ublock:background', message);
|
||||
sendAsyncMessage('ublock0:background', message);
|
||||
},
|
||||
close: function() {
|
||||
delete vAPI.messaging.channels[this.channelName];
|
||||
|
|
|
@ -56,13 +56,13 @@ for alpha2 in sorted(os.listdir(source_locale_dir)):
|
|||
chrome_manifest = pj(build_dir, 'chrome.manifest')
|
||||
|
||||
with open(chrome_manifest, 'at', encoding='utf-8', newline='\n') as f:
|
||||
f.write(u'\nlocale ublock en ./locale/en/\n')
|
||||
f.write(u'\nlocale ublock0 en ./locale/en/\n')
|
||||
|
||||
for alpha2 in language_codes:
|
||||
if alpha2 == 'en':
|
||||
continue
|
||||
|
||||
f.write(u'locale ublock ' + alpha2 + ' ./locale/' + alpha2 + '/\n')
|
||||
f.write(u'locale ublock0 ' + alpha2 + ' ./locale/' + alpha2 + '/\n')
|
||||
|
||||
rmtree(source_locale_dir)
|
||||
|
||||
|
|
|
@ -2,9 +2,9 @@
|
|||
#
|
||||
# This script assumes a linux environment
|
||||
|
||||
echo "*** uBlock.firefox: Copying files"
|
||||
echo "*** uBlock0.firefox: Copying files"
|
||||
|
||||
DES=dist/build/uBlock.firefox
|
||||
DES=dist/build/uBlock0.firefox
|
||||
rm -rf $DES
|
||||
mkdir -p $DES
|
||||
|
||||
|
@ -26,14 +26,14 @@ cp platform/firefox/install.rdf $DES/
|
|||
cp platform/firefox/*.xul $DES/
|
||||
cp LICENSE.txt $DES/
|
||||
|
||||
echo "*** uBlock.firefox: Generating meta..."
|
||||
echo "*** uBlock0.firefox: Generating meta..."
|
||||
python tools/make-firefox-meta.py $DES/
|
||||
|
||||
if [ "$1" = all ]; then
|
||||
echo "*** uBlock.firefox: Creating package..."
|
||||
echo "*** uBlock0.firefox: Creating package..."
|
||||
pushd $DES/
|
||||
zip ../uBlock.firefox.xpi -qr *
|
||||
zip ../uBlock0.firefox.xpi -qr *
|
||||
popd
|
||||
fi
|
||||
|
||||
echo "*** uBlock.firefox: Package done."
|
||||
echo "*** uBlock0.firefox: Package done."
|
||||
|
|
Loading…
Reference in New Issue