Windows support

This commit is contained in:
sarah committed 2026-10-09 14:21:42 +02:00
1 parent 9757518d8e
commit 8eb9943a30
14 files changed
+92 -17

No files matched your search

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

+17
View File
@@ -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,18 +21,34 @@ 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]]
Path = "{ConfigDir}"
Kind = "Config"
Note = "SaraTag's settings, Records, Libraries, history and Lexicons (Books next to your files are never touched)"
# Shared with the other Flet programs; see Programs/FletIdentity.py.
[[Templates]]
Platform = "Linux"
Source = "../../FletIdentity.py"
Target = "{ProgramDir}/FletIdentity.py"
+4
View File
@@ -1,4 +1,8 @@
#!/bin/sh
# Written by SaraSuite. Runs from the app folder so Flet finds assets/.
# 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 "$@"
+2 -1
View File
@@ -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}'
@@ -5,5 +5,6 @@ Comment=Tag files with Books defined by Lexicons
Exec={AppDir}/Packaging/Launch.sh
Icon={AppDir}/assets/Icon.png
Terminal=false
Categories=Utility;Graphics;
Categories=Utility;
StartupNotify=true
StartupWMClass=srhtnin.{Name}