Add icon and fix some problems
This commit is contained in:
parent
86bf8750de
commit
204218c8bb
6 changed files with 19 additions and 9 deletions
|
@ -6,8 +6,18 @@ pkgdesc="A GTK4 video transcoding GUI application"
|
||||||
arch=('x86_64' 'aarch64')
|
arch=('x86_64' 'aarch64')
|
||||||
url="https://github.com/yourusername/recoder"
|
url="https://github.com/yourusername/recoder"
|
||||||
license=('GPL3')
|
license=('GPL3')
|
||||||
depends=('gtk4' 'libadwaita' 'gobject-introspection' 'python' 'python-gobject' 'pulseaudio' 'ffmpeg')
|
depends=(
|
||||||
optdepends=('libcanberra: play system notification sounds')
|
'gtk4'
|
||||||
|
'libadwaita'
|
||||||
|
'gobject-introspection-runtime'
|
||||||
|
'python'
|
||||||
|
'python-gobject'
|
||||||
|
'ffmpeg'
|
||||||
|
)
|
||||||
|
optdepends=(
|
||||||
|
'libcanberra: play system notification sounds'
|
||||||
|
'sound-theme-freedesktop: standard system sounds like "complete.oga"'
|
||||||
|
)
|
||||||
makedepends=('python-setuptools')
|
makedepends=('python-setuptools')
|
||||||
source=()
|
source=()
|
||||||
noextract=()
|
noextract=()
|
||||||
|
@ -20,6 +30,6 @@ package() {
|
||||||
install -dm755 "$pkgdir/usr/lib/recoder"
|
install -dm755 "$pkgdir/usr/lib/recoder"
|
||||||
cp -r ../src/* "$pkgdir/usr/lib/recoder/"
|
cp -r ../src/* "$pkgdir/usr/lib/recoder/"
|
||||||
|
|
||||||
install -Dm644 ../data/recoder.desktop "$pkgdir/usr/share/applications/recoder.desktop"
|
install -Dm644 ../resources/net.jeena.Recoder.desktop "$pkgdir/usr/share/applications/net.jeena.Recoder.desktop"
|
||||||
install -Dm644 ../data/icons/recoder.png "$pkgdir/usr/share/icons/hicolor/256x256/apps/recoder.png"
|
install -Dm644 ../resources/recoder256.png "$pkgdir/usr/share/icons/hicolor/256x256/apps/recoder.png"
|
||||||
}
|
}
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
Name=Recoder
|
Name=Recoder
|
||||||
Comment=GTK4 Video Transcoding GUI Application
|
Comment=GTK4 Video Transcoding GUI Application
|
||||||
Exec=recoder
|
Exec=recoder
|
||||||
Icon=recoder
|
Icon=net.jeena.Recoder
|
||||||
Terminal=false
|
Terminal=false
|
||||||
Type=Application
|
Type=Application
|
||||||
Categories=AudioVideo;Video;Utility;
|
Categories=AudioVideo;Video;Utility;
|
BIN
resources/net.jeena.Recoder.png
Normal file
BIN
resources/net.jeena.Recoder.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 65 KiB |
BIN
resources/recoder.png
Normal file
BIN
resources/recoder.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.4 MiB |
|
@ -11,7 +11,7 @@ Adw.init()
|
||||||
|
|
||||||
class RecoderApp(Adw.Application):
|
class RecoderApp(Adw.Application):
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
super().__init__(application_id="net.jeena.recoder",
|
super().__init__(application_id="net.jeena.Recoder",
|
||||||
flags=Gio.ApplicationFlags.FLAGS_NONE)
|
flags=Gio.ApplicationFlags.FLAGS_NONE)
|
||||||
self.window = None
|
self.window = None
|
||||||
|
|
||||||
|
|
|
@ -34,15 +34,15 @@ class TranscoderWorker:
|
||||||
|
|
||||||
def _process_files(self):
|
def _process_files(self):
|
||||||
total = len(self.files)
|
total = len(self.files)
|
||||||
for idx, filepath in enumerate(self.files, start=1):
|
for idx, filepath in enumerate(self.files):
|
||||||
basename = os.path.basename(filepath)
|
basename = os.path.basename(filepath)
|
||||||
self._update_progress(f"Processing {basename} ({idx}/{total})...", idx / total)
|
self._update_progress(f"Processing {basename} ({idx}/{total})...", idx / total)
|
||||||
|
|
||||||
success, output_path = transcode_file(filepath, os.path.join(os.path.dirname(filepath), "transcoded"))
|
success, output_path = transcode_file(filepath, os.path.join(os.path.dirname(filepath), "transcoded"))
|
||||||
if not success:
|
if not success:
|
||||||
self._update_progress(f"Error transcoding {basename}", idx / total)
|
self._update_progress(f"Error transcoding {basename}", idx + 1 / total)
|
||||||
else:
|
else:
|
||||||
self._update_progress(f"Finished {basename}", idx / total)
|
self._update_progress(f"Finished {basename}", idx + 1 / total)
|
||||||
|
|
||||||
self.is_processing = False
|
self.is_processing = False
|
||||||
self._update_progress("All done!", 1.0)
|
self._update_progress("All done!", 1.0)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue