pennyrouter 0.3.29 → 0.3.30
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.
- package/package.json +1 -1
- package/src/launch.js +8 -1
package/package.json
CHANGED
package/src/launch.js
CHANGED
|
@@ -505,7 +505,14 @@ export function renderCodexLaunchProfile({
|
|
|
505
505
|
}
|
|
506
506
|
|
|
507
507
|
export function codexDesktopExecutable() {
|
|
508
|
-
if (process.platform === "darwin")
|
|
508
|
+
if (process.platform === "darwin") {
|
|
509
|
+
const appPath = "/Applications/Codex.app";
|
|
510
|
+
const result = spawnSync("/usr/libexec/PlistBuddy", [
|
|
511
|
+
"-c", "Print :CFBundleExecutable", join(appPath, "Contents", "Info.plist"),
|
|
512
|
+
], { encoding: "utf8", stdio: ["ignore", "pipe", "ignore"] });
|
|
513
|
+
const executable = result.status === 0 ? result.stdout.trim() : "";
|
|
514
|
+
return join(appPath, "Contents", "MacOS", executable || "Codex");
|
|
515
|
+
}
|
|
509
516
|
if (process.platform === "win32") return "Codex.exe";
|
|
510
517
|
return "codex";
|
|
511
518
|
}
|