SaraSortd on Windows

This commit is contained in:
sarah committed 2026-10-09 14:11:53 +02:00
1 parent 92033f3bf6
commit 34457f6236
1 file changed
+19 -1
+19 -1
View File
@@ -1,5 +1,6 @@
Name = "SaraSortd"
Description = "Sorts files from input folders into output folders by the rules in its configs. Runs in the background as a systemd user service."
Description = "Sorts files from input folders into output folders by the rules in its configs. Runs in the background."
Platforms = ["Linux", "Windows"]
[Version]
File = "SaraSortd.py"
@@ -39,13 +40,30 @@ Target = "{ConfigDir}/InputDirConf.toml"
Source = "OutputDirConf.toml"
Target = "{ConfigDir}/OutputDirConf.toml"
# Linux: a systemd user service.
[[Templates]]
Platform = "Linux"
Source = "SaraSortd.service"
Target = "{SystemdUserDir}/SaraSortd.service"
[[Services]]
Platform = "Linux"
Unit = "SaraSortd.service"
Option = "Autostart"
# Windows: run windowless from ConfigDir by ServiceRun.py, at login through a
# shortcut in the Startup folder (see SaraSuite's WindowsSupport.py).
[[Templates]]
Platform = "Windows"
Source = "../../ServiceRun.py"
Target = "{ProgramDir}/ServiceRun.py"
[[Services]]
Platform = "Windows"
Name = "SaraSortd"
Script = "SaraSortd.py"
WorkingDir = "{ConfigDir}"
Option = "Autostart"
# Everything SaraSortd makes inside the sorting folders is worked out from
# GlobalConf.toml by Hooks.py.