Skip to content

Commit f68d759

Browse files
committed
Patch ELF binary on Linux to prevent update issues.
1 parent 381f8ad commit f68d759

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/build.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -739,6 +739,8 @@ jobs:
739739
run: |
740740
curl -L "https://www.7-zip.org/a/7z2408-linux-x64.tar.xz" | tar xJ
741741
sudo mv 7zz /usr/local/bin/7z
742+
sudo apt install patchelf
743+
python3 -m pip install cryptography
742744
- name: "\U0001F4E4 Checkout"
743745
uses: actions/checkout@v4
744746
with:
@@ -799,13 +801,13 @@ jobs:
799801
if [ -d "$PWD"/waterfox/browser/locales/en-GB ]; then
800802
./mach package-multi-locale --locales ar cs da de el en-GB en-US es-ES es-MX fr hu id it ja ko lt nl nn-NO pl pt-BR pt-PT ru sv-SE th vi zh-CN zh-TW
801803
fi
802-
python3 -m pip install cryptography
803804
echo "${{ secrets.SIGN_BASE64 }}" | base64 --decode > sign.zip
804805
unzip -q sign.zip
805806
rm sign.zip
806807
chmod +x ./sign/sign.sh
807808
./sign/sign.sh -k "$PWD"/sign/1 -p ${{ secrets.ONE_PEM }} -c "$PWD"/sign/2 -i "$PWD"/obj-${{ env.ARCH }}/dist/waterfox -t linux
808809
rm -rf ./sign/
810+
patchelf --add-rpath '$ORIGIN' "$PWD"/obj-${{ env.ARCH }}/dist/waterfox/updater
809811
tar -c --owner=0 --group=0 --numeric-owner --mode=go-w --exclude=.mkdir.done -jf waterfox-${{ env.VERSION_DISPLAY }}.tar.bz2 -C "$PWD"/obj-${{ env.ARCH }}/dist waterfox
810812
shasum -a 512 waterfox-${{ env.VERSION_DISPLAY }}.tar.bz2 > waterfox-${{ env.VERSION_DISPLAY }}.tar.bz2.sha512
811813
- name: "\U0001F4E6 Package MAR"

0 commit comments

Comments
 (0)