nexo-brain 2.6.4 → 2.6.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,14 +1,20 @@
1
1
  #!/bin/bash
2
2
  # NEXO Prevent Sleep — keeps the machine awake so nocturnal processes run.
3
3
  #
4
- # macOS: uses caffeinate -s -i (prevent system + idle sleep)
4
+ # macOS: uses native /usr/bin/caffeinate for best-effort background availability
5
5
  # Linux: uses systemd-inhibit or caffeine if available, otherwise no-op
6
6
  #
7
7
  # Run as LaunchAgent (KeepAlive) or systemd service.
8
8
 
9
9
  case "$(uname -s)" in
10
10
  Darwin)
11
- exec caffeinate -s -i -w $$
11
+ if [[ ! -x /usr/bin/caffeinate ]]; then
12
+ echo "[NEXO] /usr/bin/caffeinate not found. macOS power helper unavailable."
13
+ exit 1
14
+ fi
15
+ # Keep the helper alive as long as this service runs. On laptops with the
16
+ # lid closed, actual behavior still depends on hardware and OS policy.
17
+ exec /usr/bin/caffeinate -d -i -m -s /bin/bash -lc 'while :; do sleep 3600; done'
12
18
  ;;
13
19
  Linux)
14
20
  if command -v systemd-inhibit &>/dev/null; then
package/src/nexo.db DELETED
Binary file