Skip to content
This repository has been archived by the owner on Apr 24, 2024. It is now read-only.

Commit

Permalink
fix(build): lib files
Browse files Browse the repository at this point in the history
  • Loading branch information
IMXEren committed Mar 5, 2024
1 parent dc53967 commit 814c3e6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions build_package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down

0 comments on commit 814c3e6

Please sign in to comment.