From 814c3e6bba078c7ac81859891f901fb5e08cd707 Mon Sep 17 00:00:00 2001 From: IMXEren <96839938+IMXEren@users.noreply.github.com> Date: Wed, 6 Mar 2024 01:03:00 +0530 Subject: [PATCH] fix(build): lib files --- build_package.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/build_package.sh b/build_package.sh index c4531b0..dc1f715 100644 --- a/build_package.sh +++ b/build_package.sh @@ -73,9 +73,12 @@ if [ $? -eq 0 ]; then exit 1 fi echo "$package_script" > ${package} + mkdir -p lib-${package} for libpath in $(ldd ${package}.bin | grep -F "/data/data/com.termux/" | sed "s/.* //g"); do cp -L "$libpath" lib-${package} &>/dev/null done + ## Only removes when empty + rmdir lib-${package} 2>/dev/null echo -e "\n Zipping package..." chmod 744 ${package} ${package}.bin &>/dev/null 7z a -tzip -mx=9 -bd -bso0 ${zip_name} ${package} ${package}.bin lib-${package}