mirror of
https://git.srhtnin.garden/sarah/SaraSuite.git
synced 2026-10-15 02:33:17 +02:00
macOS support (code only, no build yet)
This commit is contained in:
1 parent
1feb6d4336
commit
ca04dcd4a7
17 files changed
+572
-126
No files matched your search
@@ -1,6 +1,6 @@
|
||||
Name = "SaraSortd"
|
||||
Description = "Sorts files from input folders into output folders by the rules in its configs. Runs in the background."
|
||||
Platforms = ["Linux", "Windows"]
|
||||
Platforms = ["Linux", "Windows", "macOS"]
|
||||
|
||||
[Version]
|
||||
File = "SaraSortd.py"
|
||||
@@ -46,10 +46,11 @@ Platform = "Linux"
|
||||
Source = "SaraSortd.service"
|
||||
Target = "{SystemdUserDir}/SaraSortd.service"
|
||||
|
||||
# Windows, and Linux without systemd (runit, OpenRC, s6, ...): run from
|
||||
# ConfigDir by ServiceRun.py, which restarts it if it fails, at login through
|
||||
# a shortcut in the Startup folder / an XDG autostart entry (SaraSuite's
|
||||
# Services.py). On Linux the same service has a Unit for systemd too.
|
||||
# Windows, macOS, and Linux without systemd (runit, OpenRC, s6, ...): run
|
||||
# from ConfigDir by ServiceRun.py, which restarts it if it fails, at login
|
||||
# through a shortcut in the Startup folder / a LaunchAgent / an XDG autostart
|
||||
# entry (SaraSuite's Services.py). On Linux the same service has a Unit for
|
||||
# systemd too.
|
||||
[[Templates]]
|
||||
Source = "../../ServiceRun.py"
|
||||
Target = "{ProgramDir}/ServiceRun.py"
|
||||
@@ -69,5 +70,12 @@ Script = "SaraSortd.py"
|
||||
WorkingDir = "{ConfigDir}"
|
||||
Option = "Autostart"
|
||||
|
||||
[[Services]]
|
||||
Platform = "macOS"
|
||||
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.
|
||||
Reference in new issue
Block a user