diff --git a/Programs/SaraTag/Manifest.toml b/Programs/SaraTag/Manifest.toml index 5acc438..6b8fb54 100644 --- a/Programs/SaraTag/Manifest.toml +++ b/Programs/SaraTag/Manifest.toml @@ -1,5 +1,6 @@ # Kept in sync between SaraSuite/Programs/SaraTag/ and SaraTag/Packaging/SaraSuite/. Name = "SaraTag" +Platforms = ["Linux", "Windows"] Description = "Tag files with Books (sidecars) defined by Lexicons: browse, filter and sort by tag, edit tags on many files at once." [Version] @@ -20,15 +21,25 @@ RequirementsFile = "requirements.txt" Source = "Location.toml" Target = "{AppDir}/.saratag/Location.toml" # tells .saratag/Core.py where the data lives +# Linux: a launcher and a desktop entry. [[Templates]] +Platform = "Linux" Source = "Launch.sh" Target = "{AppDir}/Packaging/Launch.sh" Executable = true [[Templates]] +Platform = "Linux" Source = "SaraTag.desktop" Target = "{ApplicationsDir}/SaraTag.desktop" +# Windows: a Start Menu shortcut (pythonw.exe Main.py, from the app folder). +[[Shortcuts]] +Platform = "Windows" +Name = "SaraTag" +Script = "Main.py" +Icon = "assets/Icon.png" + # Made by SaraTag itself. The Lexicons are your tag definitions: only tick # "remove configs" if you don't need them any more. [[Leftovers]] @@ -38,5 +49,6 @@ Note = "SaraTag's settings, Records, Libraries, history and Lexicons (Books next # Shared with the other Flet programs; see Programs/FletIdentity.py. [[Templates]] +Platform = "Linux" Source = "../../FletIdentity.py" Target = "{ProgramDir}/FletIdentity.py" diff --git a/Programs/SaraTag/Templates/Location.toml b/Programs/SaraTag/Templates/Location.toml index 7d04cd3..ad2a9f1 100644 --- a/Programs/SaraTag/Templates/Location.toml +++ b/Programs/SaraTag/Templates/Location.toml @@ -1,3 +1,4 @@ # Written by SaraSuite. Where SaraTag keeps SaraTagConf.toml, its Records, # history and Lexicons (see .saratag/Core.py). -DataDir = "{ConfigDir}" +# A literal ('...') string: Windows paths are full of backslashes. +DataDir = '{ConfigDir}'