Skip to content

Commit

Permalink
FF Multi Converter: switch to updated fork from l-koehler
Browse files Browse the repository at this point in the history
closes #2513

also add auto-updater
  • Loading branch information
theofficialgman committed Jan 6, 2024
1 parent 2376056 commit 5820820
Show file tree
Hide file tree
Showing 6 changed files with 33 additions and 21 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/updates/FF Multi Converter.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/bash

webVer=$(get_release l-koehler/FF-converter)
all_url="https://github.com/l-koehler/FF-converter/releases/download/v${webVer}/ffconverter-${webVer}.tar.gz"

source $GITHUB_WORKSPACE/.github/workflows/update_github_script.sh
2 changes: 1 addition & 1 deletion apps/FF Multi Converter/credits
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
Thanks to Crilum on GitHub for writing the scripts.
Thanks to ilstad on GitHub and all Contributors for creating FF Multi Converter!
Thanks to ilstad and l-koehler on GitHub and all Contributors for creating FF Converter!
6 changes: 3 additions & 3 deletions apps/FF Multi Converter/description
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ Simple file conversions for audio, video, images and documents.

It uses FFmpeg for audio/video files, the ImageMagick software suite for image conversions and unoconv for document files.

The goal of FF Multi Converter is to gather the most popular multimedia types in one application and provide conversion options for them easily through a user-friendly graphical interface.
The goal of FF Converter is to gather the most popular multimedia types in one application and provide conversion options for them easily through a user-friendly graphical interface.

To run: Menu -> Office -> FF Multi Converter
To run in a terminal: ffmulticonverter
To run: Menu -> Office -> FF Converter
To run in a terminal: ffconverter
27 changes: 14 additions & 13 deletions apps/FF Multi Converter/install
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
#!/bin/bash

cd /tmp
install_packages python3 python3-pyqt5 python3-distutils ffmpeg imagemagick unoconv || exit 1
git_clone https://github.com/ilstam/FF-Multi-Converter || exit 1
version=2.1.4

# remove deprecated files. Old installations used a multitude of install methods so the files could be in many places.
if [ -f /usr/local/bin/ffmulticonverter ] || [ -f /usr/local/share/applications/ffmulticonverter.desktop ]; then
for i in $(find /usr -path "*ffmulticonverter*"); do
sudo rm -rf $i
done
fi

cd FF-Multi-Converter || error 'Failed to cd into "FF-Multi-Converter" directory!'
install_packages python3 python3-pyqt5 python3-distutils ffmpeg imagemagick unoconv || exit 1
pipx_install --system-site-packages "ffconverter==$version" || exit 1

case $__os_codename in
mantic|bookworm)
errors="$(sudo python3 setup.py install --old-and-unmanageable 2>&1)" || error "Failed to install FF Multi Converter!\nErrors:\n$errors"
;;
*)
errors="$(sudo python3 setup.py install 2>&1)" || error "Failed to install FF Multi Converter!\nErrors:\n$errors"
;;
esac
sudo rm -rf FF-Multi-Converter
# add .desktop symlinks since pipx does not create them https://github.com/pypa/pipx/issues/717
sudo mkdir -p /usr/local/share/applications /usr/local/share/icons
sudo ln -sf /usr/local/pipx/venvs/ffconverter/share/applications/ffconverter.desktop /usr/local/share/applications/ffconverter.desktop
sudo ln -sf /usr/local/pipx/venvs/ffconverter/share/pixmaps/ffconverter.png /usr/local/share/icons/ffconverter.png
11 changes: 8 additions & 3 deletions apps/FF Multi Converter/uninstall
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
#!/bin/bash

for i in $(find /usr -path "*ffmulticonverter*"); do
sudo rm -rf $i
done
# remove deprecated files. Old installations used a multitude of install methods so the files could be in many places.
if [ -f /usr/local/bin/ffmulticonverter ] || [ -f /usr/local/share/applications/ffmulticonverter.desktop ]; then
for i in $(find /usr -path "*ffmulticonverter*"); do
sudo rm -rf $i
done
fi

pipx_uninstall ffconverter || exit 1
purge_packages || exit 1
sudo rm -f /usr/local/share/applications/ffconverter.desktop /usr/local/share/icons/ffconverter.png
2 changes: 1 addition & 1 deletion apps/FF Multi Converter/website
Original file line number Diff line number Diff line change
@@ -1 +1 @@
https://sites.google.com/site/ffmulticonverter/
https://github.com/l-koehler/FF-converter

0 comments on commit 5820820

Please sign in to comment.