Commit 15b0a05e authored by Karel Slaný's avatar Karel Slaný

Modified script to build fat Windows XPI package.

parent b90c898c
......@@ -74,6 +74,10 @@ if [ "x${FAT_TARGET}" = "xno" ]; then
elif [ "x${FAT_TARGET}" = "xyes" ]; then
XPI64=win64.xpi
XPI32=win32.xpi
XPIFAT=winfat.xpi
# Create 64-bit first.
CONF_OPTS=""
CONF_OPTS="${CONF_OPTS} --enable-static-linking"
......@@ -87,8 +91,8 @@ elif [ "x${FAT_TARGET}" = "xyes" ]; then
make clean
make
XPI64=win64.xpi
cp add-on/*.xpi ./${XPI64}
XPI64=$(ls add-on/*.xpi | sed -e 's/.*\///g')
mv add-on/${XPI64} ./${XPI64}
# Follow with 32-bits.
CONF_OPTS=""
......@@ -103,8 +107,21 @@ elif [ "x${FAT_TARGET}" = "xyes" ]; then
make clean
make
XPI32=win32.xpi
cp add-on/*.xpi ./${XPI32}
XPI32=$(ls add-on/*.xpi | sed -e 's/.*\///g')
mv add-on/${XPI32} ./${XPI32}
# Inflate fat xpi.
XPIFAT=$(echo "${XPI32}" | sed -e 's/x86\(_64\)\?/fat/g')
cp "${XPI32}" "${XPIFAT}"
rm -rf "platform"
unzip "${XPI64}" \
"platform/libDANEcore-WINNT-x86_64.dll" \
"platform/libDNSSECcore-WINNT-x86_64.dll"
zip -g "${XPIFAT}" \
"platform/libDANEcore-WINNT-x86_64.dll" \
"platform/libDNSSECcore-WINNT-x86_64.dll"
rm -rf "platform"
fi
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment