Merge pull request #8420 from radarhere/libimagequant_lib64

This commit is contained in:
Hugo van Kemenade 2024-09-28 09:05:51 -07:00 committed by GitHub
commit 58ef920771
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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