Added SaraTune.

This commit is contained in:
sarah committed 2026-10-09 15:38:56 +02:00
1 parent 9f99adc519
commit 4e662beca2
4 files changed
+69

No files matched your search

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

+48
View File
@@ -0,0 +1,48 @@
# Kept in sync between SaraSuite/Programs/SaraTune/ and SaraTune/Packaging/SaraSuite/.
Name = "SaraTune"
Platforms = ["Linux", "Windows"]
Description = "A music player with two modes: Audio to open a file or folder and listen right away, Music for your library, a queue and saved playlists. Linux needs libmpv (Fedora: mpv-libs)."
[Source]
Git = "{GitHost}/SaraTune"
Include = ["*.py", "requirements.txt", "assets/**"]
Exclude = ["Packaging"]
[Python]
RequirementsFile = "requirements.txt"
# Linux: a launcher and a desktop entry (also offered for opening audio files).
[[Templates]]
Platform = "Linux"
Source = "Launch.sh"
Target = "{AppDir}/Packaging/Launch.sh"
Executable = true
[[Templates]]
Platform = "Linux"
Source = "SaraTune.desktop"
Target = "{ApplicationsDir}/SaraTune.desktop"
# Windows: a Start Menu shortcut (pythonw.exe Main.py, from the app folder).
[[Shortcuts]]
Platform = "Windows"
Name = "SaraTune"
Script = "Main.py"
Icon = "assets/Icon.png"
# Made by SaraTune itself.
[[Leftovers]]
Path = "{ConfigDir}"
Kind = "Config"
Note = "SaraTune's settings, saved queue and your playlists"
[[Leftovers]]
Path = "{CacheHome}/SaraSuite/SaraTune"
Kind = "Runtime"
Note = "library tag cache and cover thumbnails"
# Shared with the other Flet programs; see Programs/FletIdentity.py.
[[Templates]]
Platform = "Linux"
Source = "../../FletIdentity.py"
Target = "{ProgramDir}/FletIdentity.py"
+10
View File
@@ -0,0 +1,10 @@
#!/bin/sh
# Written by SaraSuite. Runs from the app folder so Flet finds assets/.
# Flet's audio player is only in its "full" desktop client.
export FLET_DESKTOP_FLAVOR=full
# A Flet client copy with the window app ID srhtnin.{Name}, so the desktop
# matches the window to {Name}.desktop (StartupWMClass) instead of showing it
# as "com.appveyor.flet". Empty if that fails: Flet then uses its own client.
export FLET_VIEW_PATH="$("{Python}" "{ProgramDir}/FletIdentity.py" "srhtnin.{Name}")"
cd "{AppDir}" || exit 1
exec "{Python}" Main.py "$@"
@@ -0,0 +1,11 @@
[Desktop Entry]
Type=Application
Name=SaraTune
Comment=Play audio files and your music library
Exec={AppDir}/Packaging/Launch.sh %F
Icon={AppDir}/assets/Icon.png
Terminal=false
Categories=AudioVideo;Audio;Player;
MimeType=audio/mpeg;audio/flac;audio/x-flac;audio/ogg;audio/x-vorbis+ogg;audio/opus;audio/x-opus+ogg;audio/wav;audio/x-wav;audio/mp4;audio/x-m4a;audio/aac;audio/x-aiff;audio/x-ms-wma;audio/x-matroska;audio/webm;
StartupNotify=true
StartupWMClass=srhtnin.{Name}