Fix libraries

This commit is contained in:
Isaac Shoebottom 2025-04-02 14:11:52 -03:00
parent d0574e433a
commit e0de67fad7
2 changed files with 20 additions and 3 deletions

View File

@ -58,7 +58,7 @@
["BtbN/FFmpeg-Builds"] ["BtbN/FFmpeg-Builds"]
asset_filters = [ "^lgpl", "shared", "master", ".tar.xz" ] asset_filters = [ "^lgpl", "shared", "master", ".tar.xz" ]
all = true download_only = true # Shared libraries aren't extracted correctly, need to do in post install script
#["romkatv/zsh-bin"] #["romkatv/zsh-bin"]
# asset_filters = [ "^asc" ] # asset_filters = [ "^asc" ]

View File

@ -42,8 +42,25 @@ if compgen -G "bash-completion*tar*" > /dev/null; then
chmod +x bash_completion chmod +x bash_completion
fi fi
# Handle shared libraries if compgen -G "ffmpeg*tar*" > /dev/null; then
rsync --remove-source-files $(fd --glob "*.so*") ../lib # Extract ffmpeg
tar xf ffmpeg*tar*
# Handle shared libraries
rsync --remove-source-files --links $(fd --glob "*.so*") ../lib
# Binaries
mv -f ffmpeg*/bin/* .
# Remove archive
rm -r ffmpeg*tar*
# Remove extracted files
rm -r ffmpeg-*
fi
# Gen Desktop file for firefox appimage # Gen Desktop file for firefox appimage
gendesk -f -n --pkgname "firefox" --name "Firefox" --exec "firefox" --icon "firefox" --categories "Network" --comment "Firefox Web Browser" --genericname "Web Browser" gendesk -f -n --pkgname "firefox" --name "Firefox" --exec "firefox" --icon "firefox" --categories "Network" --comment "Firefox Web Browser" --genericname "Web Browser"