-
Notifications
You must be signed in to change notification settings - Fork 208
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
FF Multi Converter: switch to updated fork from l-koehler
closes #2513 also add auto-updater
- Loading branch information
1 parent
2376056
commit 5820820
Showing
6 changed files
with
33 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |