diff --git a/Programs/SaraTag/Manifest.toml b/Programs/SaraTag/Manifest.toml new file mode 100644 index 0000000..0b1e2dc --- /dev/null +++ b/Programs/SaraTag/Manifest.toml @@ -0,0 +1,37 @@ +# Kept in sync between SaraSuite/Programs/SaraTag/ and SaraTag/Packaging/SaraSuite/. +Name = "SaraTag" +Description = "Tag files with Books (sidecars) defined by Lexicons: browse, filter and sort by tag, edit tags on many files at once." + +[Version] +File = "Core.py" +Pattern = 'AppVersion = "([^"]+)"' + +[Source] +Git = "{GitHost}/SaraTag" +# .saratag/Core.py is the data library SaraFem and SaraView load too. +# SaraTagConf.toml is left out: SaraTag makes its own in {ConfigDir}. +Include = ["*.py", "requirements.txt", "assets/**", ".saratag/*.py"] +Exclude = ["Packaging"] + +[Python] +RequirementsFile = "requirements.txt" + +[[Templates]] +Source = "Location.toml" +Target = "{AppDir}/.saratag/Location.toml" # tells .saratag/Core.py where the data lives + +[[Templates]] +Source = "Launch.sh" +Target = "{AppDir}/Packaging/Launch.sh" +Executable = true + +[[Templates]] +Source = "SaraTag.desktop" +Target = "{ApplicationsDir}/SaraTag.desktop" + +# Made by SaraTag itself. The Lexicons are your tag definitions: only tick +# "remove configs" if you don't need them any more. +[[Leftovers]] +Path = "{ConfigDir}" +Kind = "Config" +Note = "SaraTag's settings, Records, Libraries, history and Lexicons (Books next to your files are never touched)" diff --git a/Programs/SaraTag/Templates/Launch.sh b/Programs/SaraTag/Templates/Launch.sh new file mode 100644 index 0000000..c606b43 --- /dev/null +++ b/Programs/SaraTag/Templates/Launch.sh @@ -0,0 +1,4 @@ +#!/bin/sh +# Written by SaraSuite. Runs from the app folder so Flet finds assets/. +cd "{AppDir}" || exit 1 +exec "{Python}" Main.py "$@" diff --git a/Programs/SaraTag/Templates/Location.toml b/Programs/SaraTag/Templates/Location.toml new file mode 100644 index 0000000..7d04cd3 --- /dev/null +++ b/Programs/SaraTag/Templates/Location.toml @@ -0,0 +1,3 @@ +# Written by SaraSuite. Where SaraTag keeps SaraTagConf.toml, its Records, +# history and Lexicons (see .saratag/Core.py). +DataDir = "{ConfigDir}" diff --git a/Programs/SaraTag/Templates/SaraTag.desktop b/Programs/SaraTag/Templates/SaraTag.desktop new file mode 100644 index 0000000..afcc970 --- /dev/null +++ b/Programs/SaraTag/Templates/SaraTag.desktop @@ -0,0 +1,9 @@ +[Desktop Entry] +Type=Application +Name=SaraTag +Comment=Tag files with Books defined by Lexicons +Exec={AppDir}/Packaging/Launch.sh +Icon={AppDir}/assets/Icon.png +Terminal=false +Categories=Utility;Graphics; +StartupNotify=true diff --git a/README.md b/README.md index 0aa5575..3c80acf 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # SaraSuite -Installs, updates and removes Sara programs (SaraSortd, SaraFem, and eventually the SaraView client). +Installs, updates and removes Sara programs (SaraSortd, SaraSort, SaraFem, SaraTag, and eventually the SaraView client). It's one AppImage file: download it, run it, pick a program. - **Install**: downloads the program's latest commit from its git repo, copies it into