fix(cli): use POSIX native service paths

This commit is contained in:
Federico Jaramillo Martinez
2026-07-13 13:10:34 +02:00
parent 767e653028
commit a8aee7b550
4 changed files with 21 additions and 7 deletions
+2 -2
View File
@@ -1,4 +1,4 @@
import { join } from "node:path";
import { posix as posixPath } from "node:path";
import type {
NativeServiceId,
NativeServicePlan,
@@ -42,7 +42,7 @@ export function renderLaunchdPlist(
const keepAlive = service.restart === "on-failure"
? " <key>KeepAlive</key>\n <dict>\n <key>SuccessfulExit</key>\n <false/>\n </dict>\n"
: "";
const logPath = join(logDirectory, service.manager.logName);
const logPath = posixPath.join(logDirectory, service.manager.logName);
return `<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">