Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
makes Firefox 48 release honor 'xpinstall.signatures.required' pref.
#!/bin/sh
# This patch makes Firefox 48 release honor 'xpinstall.signatures.required' pref.
test -e omni.ja.bak || mv omni.ja omni.ja.bak
test -r omni.ja && rm omni.ja
mkdir omni_ja
unzip -d omni_ja omni.ja.bak
sed -i '/MOZ_REQUIRE_SIGNING:/,/true/ s/true/false/' omni_ja/modules/AppConstants.jsm
sed -i '/REQUIRE_SIGNING",/,/value: true/ s/value: true/value: false/' omni_ja/modules/addons/AddonConstants.jsm
cp omni_ja/modules/AppConstants.jsm omni_ja/jsloader/resource/gre/modules/AppConstants.jsm
cp omni_ja/modules/addons/AddonConstants.jsm omni_ja/jsloader/resource/gre/modules/addons/AddonConstants.jsm
( cd omni_ja; zip -r ../omni.ja * )
rm -rf omni_ja
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.