@@ -34,8 +34,7 @@ if [ -n "$1" ] && [ "$2" != "--no-recurse" ] ; then
3434 # Ensure a clean build.
3535 git clean -fdx
3636
37- git submodule init
38- git submodule update
37+ git submodule update --recursive -f
3938 # Use the version of the build script that was current when that
4039 # tag/release/branch was made.
4140 ./makexpi.sh $1 --no-recurse || exit 1
@@ -47,7 +46,7 @@ if [ -n "$1" ] && [ "$2" != "--no-recurse" ] ; then
4746 # Now escape from the horrible mess we've made
4847 cd ..
4948 XPI_NAME=" $APP_NAME -$1 "
50- cp $SUBDIR /pkg/$XPI_NAME .xpi pkg/
49+ cp $SUBDIR /pkg/$XPI_NAME -eff .xpi pkg/
5150 if ! cp $SUBDIR /pkg/$XPI_NAME -amo.xpi pkg/ 2> /dev/null ; then
5251 echo Old version does not support AMO
5352 fi
@@ -107,8 +106,14 @@ cp -a translations/* pkg/xpi-eff/chrome/locale/
107106rm -r pkg/xpi-eff/chrome/content/rules
108107[ -e pkg/xpi-amo ] && rm -rf pkg/xpi-amo
109108cp -a pkg/xpi-eff/ pkg/xpi-amo/
110- # The AMO version of the package cannot contain the updateKey or updateURL tags
111- sed -i.bak -e ' /updateKey/d' -e ' /updateURL/d' pkg/xpi-amo/install.rdf
109+ # The AMO version of the package cannot contain the updateKey or updateURL tags.
110+ # Also, it has a different id than the eff-hosted version, because Firefox now
111+ # requires us to upload the eff-hosted version to an unlisted extension on AMO
112+ # in order to receive a signature indicating that it is not malware.
113+ # https://github.com/efforg/https-everywhere/issues/2051
114+ sed -i.bak -e ' /updateKey/d' -e ' /updateURL/d' \
115+ -e ' s,<em:id>https-everywhere-eff@eff.org</em:id>,<em:id>https-everywhere@eff.org</em:id>,' \
116+ pkg/xpi-amo/install.rdf
112117rm pkg/xpi-amo/install.rdf.bak
113118
114119# Used for figuring out which branch to pull from when viewing source for rules
121126# Build the XPI!
122127rm -f " ${XPI_NAME} .xpi"
123128rm -f " ${XPI_NAME} -amo.xpi"
124- python2.7 utils/create_xpi.py -n " ${XPI_NAME} .xpi" -x " .build_exclusions" " pkg/xpi-eff"
129+ python2.7 utils/create_xpi.py -n " ${XPI_NAME} -eff .xpi" -x " .build_exclusions" " pkg/xpi-eff"
125130python2.7 utils/create_xpi.py -n " ${XPI_NAME} -amo.xpi" -x " .build_exclusions" " pkg/xpi-amo"
126131
127132echo >&2 " Total included rules: ` sqlite3 $RULESETS_SQLITE ' select count(*) from rulesets' ` "
128133echo >&2 " Rules disabled by default: ` find src/chrome/content/rules -name " *.xml" | xargs grep -F default_off | wc -l` "
129- echo >&2 " Created ${XPI_NAME} .xpi and ${XPI_NAME} -amo.xpi"
134+ echo >&2 " Created ${XPI_NAME} -eff .xpi and ${XPI_NAME} -amo.xpi"
130135
131- bash utils/android-push.sh " $XPI_NAME .xpi"
136+ bash utils/android-push.sh " $XPI_NAME -eff .xpi"
132137
133138if [ -n " $BRANCH " ]; then
134- cp $SUBDIR /$XPI_NAME .xpi pkg
139+ cp $SUBDIR /${ XPI_NAME} -eff .xpi $SUBDIR / ${XPI_NAME} -amo pkg
135140 rm -rf $SUBDIR
136141fi
0 commit comments