Skip to content

Commit

Permalink
build-package.sh: remove files .crates2.json from packages
Browse files Browse the repository at this point in the history
.crates2.json is generated by cargo during the crate installation.

See #5037.
  • Loading branch information
Leonid Plyushch committed Mar 15, 2020
1 parent bace80c commit 82aad7c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions scripts/build/termux_step_massage.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@ termux_step_massage() {
sed --follow-symlinks -i -E "1 s@^#\!(.*)/bin/(.*)@#\!$TERMUX_PREFIX/bin/\2@" "$file"
done < <(find -L . -type f -print0)

# Remove unneeded files created by rust/cargo.
rm -f .crates2.json

# Remove files specified in TERMUX_PKG_RM_AFTER_INSTALL.
test ! -z "$TERMUX_PKG_RM_AFTER_INSTALL" && rm -Rf $TERMUX_PKG_RM_AFTER_INSTALL

find . -type d -empty -delete # Remove empty directories
Expand Down

0 comments on commit 82aad7c

Please sign in to comment.