Skip to content

Commit

Permalink
Allow libimagequant shared library path to change
Browse files Browse the repository at this point in the history
  • Loading branch information
radarhere committed Sep 28, 2024
1 parent 25592b6 commit e976096
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions depends/install_imagequant.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,19 +23,14 @@ else
cargo cinstall --prefix=/usr --destdir=.

# Copy into place
if [ -d "usr/lib64" ]; then
lib="lib64"
else
lib="lib"
fi
sudo cp usr/$lib/libimagequant.so* /usr/lib/
sudo find usr -name libimagequant.so* -exec cp {} /usr/lib/ \;
sudo cp usr/include/libimagequant.h /usr/include/

if [ -n "$GITHUB_ACTIONS" ]; then
# Copy to cache
rm -rf ~/cache-$archive_name
mkdir ~/cache-$archive_name
cp usr/lib/libimagequant.so* ~/cache-$archive_name/
find usr -name libimagequant.so* -exec cp {} ~/cache-$archive_name/ \;
cp usr/include/libimagequant.h ~/cache-$archive_name/
fi

Expand Down

0 comments on commit e976096

Please sign in to comment.