Fix again

This commit is contained in:
Thorsten Spille 2023-01-22 22:05:27 +01:00
parent 135e0a7c9f
commit f941933efe

View File

@ -128,7 +128,7 @@ if [[ "$(arch)" == "aarch64" ]]; then
wget -O znapzend_${znapzend_version}_amd64.deb https://repo.45drives.com/debian/pool/main/z/znapzend/znapzend_${znapzend_version}_amd64.deb wget -O znapzend_${znapzend_version}_amd64.deb https://repo.45drives.com/debian/pool/main/z/znapzend/znapzend_${znapzend_version}_amd64.deb
mkdir znapzend mkdir znapzend
dpkg-deb -R znapzend_${znapzend_version}_amd64.deb ./znapzend dpkg-deb -R znapzend_${znapzend_version}_amd64.deb ./znapzend
sed -i "s/amd64/aarch64/g" ./znapzend/DEBIAN/control sed -i "s/amd64/arm64/g" ./znapzend/DEBIAN/control
sed -i "s/x86_64-linux-gnu/aarch64-linux-gnu/g" znapzend/usr/bin/* sed -i "s/x86_64-linux-gnu/aarch64-linux-gnu/g" znapzend/usr/bin/*
mv znapzend/usr/lib/x86_64-linux-gnu znapzend/usr/lib/aarch64-linux-gnu mv znapzend/usr/lib/x86_64-linux-gnu znapzend/usr/lib/aarch64-linux-gnu
dpkg-deb -b znapzend znapzend_${znapzend_version}_arm64.deb dpkg-deb -b znapzend znapzend_${znapzend_version}_arm64.deb