From 24010df504d9ebc14e044dee6831f01c250a3d45 Mon Sep 17 00:00:00 2001 From: meriadec Date: Fri, 5 Oct 2018 18:29:12 +0200 Subject: [PATCH] Add kernel libs checksums in AppImage patch script --- scripts/patch-appimage.sh | 3 +++ scripts/shasums/kernel-libs.txt | 4 ++++ 2 files changed, 7 insertions(+) create mode 100644 scripts/shasums/kernel-libs.txt diff --git a/scripts/patch-appimage.sh b/scripts/patch-appimage.sh index 4b49c918..407e8504 100755 --- a/scripts/patch-appimage.sh +++ b/scripts/patch-appimage.sh @@ -29,6 +29,9 @@ for PACKAGE in "${LIBRARIES[@]}"; do rm "$PACKAGE$PACKAGE_SUFFIX" done +cp "$OLDPWD/scripts/shasums/kernel-libs.txt" . +sha512sum --quiet --check kernel-libs.txt || exit 1 + ./ledger-live-desktop-"$LEDGER_LIVE_VERSION"-linux-x86_64.AppImage --appimage-extract cp -a usr/lib/x86_64-linux-gnu/*.so.* squashfs-root/usr/lib diff --git a/scripts/shasums/kernel-libs.txt b/scripts/shasums/kernel-libs.txt new file mode 100644 index 00000000..3e891004 --- /dev/null +++ b/scripts/shasums/kernel-libs.txt @@ -0,0 +1,4 @@ +bebb42401a43971cfe3e31f2c9ee4efee352ce0d29a8ccc95ca1356a58463afd4876b133d9f4295697f96b76eb21b50c1909a073db753569e8969065eb40b306 usr/lib/x86_64-linux-gnu/libgssapi_krb5.so.2.2 +d7d2b38a46d65a06560241b226f61d81c4df28d56c6841dd34bb428802ace0fc80cf94de1e5117f0b85b2c69b550df61ac999184d5cfe8ecd3bea4d8394d1d21 usr/lib/x86_64-linux-gnu/libkrb5.so.3.3 +b025b755eb9a64f0d03a8e92c9e4b4f95c2c506bf070cf037841ef8cdb9013e16390d0e17330f2ce8c98c3b1f05b917a3018109acfde7aab50bc9d9fa70ea12b usr/lib/x86_64-linux-gnu/libk5crypto.so.3.1 +f181e41f306819c10054ff8ceebf4943858f2cd34dea5206b51141877e2f651be3c6435bb02538cbde2cc0415f38e476423a9fd6a428ca9d425e9c662483b9af usr/lib/x86_64-linux-gnu/libkrb5support.so.0.1