Skip to content
Source
Sign inSign up
pingdotgg/t3code

feat(server): run the background service on macOS via launchd #6286

Mergedt3dotgg(GitHub profile, opens in a new tab)merged 5 commits intomain fromrefs/pull/6286/headmerged by t3dotgg(GitHub profile, opens in a new tab) View on GitHub

Showing 11 changed files with 17 additions and 6 deletions (loading 8).

x
0 of 11 viewed, 11 left
5 additions and 1 deletionapps/server/src/cli/connect.tsModified
View file
@@ -5,6 +5,7 @@
type RelayClientInstallProgressStage,
} from "@t3tools/contracts";
import { RelayOkResponse } from "@t3tools/contracts/relay";
+import { HostProcessPlatform } from "@t3tools/shared/hostProcess";
import * as RelayClient from "@t3tools/shared/relayClient";
import { withRelayClientTracing } from "@t3tools/shared/relayTracing";
import * as Cause from "effect/Cause";
@@ -694,8 +695,11 @@
// fail the command, just tell the user what happened and move on.
const background = yield* recoverServiceOnboardingOffer(offerServiceDuringOnboarding);
if (background) {
+ const platform = yield* HostProcessPlatform;
yield* Console.log(
- "\n✓ Background service ready\n\nT3 Code will stay reachable after you log out.",
+ platform === "darwin"
+ ? "\n✓ Background service ready\n\nT3 Code will stay reachable while you are logged in to this Mac."
+ : "\n✓ Background service ready\n\nT3 Code will stay reachable after you log out.",
return;
2 additions and 2 deletionsapps/server/src/cli/service.test.tsModified
View file
@@ -29,9 +29,9 @@
);
});
​