diff --git a/Programs/SaraSortd/Manifest.toml b/Programs/SaraSortd/Manifest.toml index 332b13a..505abc3 100644 --- a/Programs/SaraSortd/Manifest.toml +++ b/Programs/SaraSortd/Manifest.toml @@ -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.