The desktop bundle already contains the full server -- the same entrypoint npm's t3 package runs -- so a launcher that starts it through the bundled Electron as Node puts the CLI on PATH without a second runtime. Upstream only distributes the CLI via npm, which Omarchy's install scripting cannot assume.
11 lines
478 B
Bash
Executable File
11 lines
478 B
Bash
Executable File
#!/bin/bash
|
|
# The T3 Code server CLI (`t3`) ships inside the app bundle; upstream only
|
|
# distributes it separately through npm. The bundled Electron doubles as the
|
|
# Node runtime for it, so the desktop package can put the CLI on PATH without
|
|
# shipping a second runtime. Electron's fs layer reads app.asar transparently
|
|
# in this mode.
|
|
set -euo pipefail
|
|
|
|
export ELECTRON_RUN_AS_NODE=1
|
|
exec /usr/lib/t3code/t3code /usr/lib/t3code/resources/app.asar/apps/server/dist/bin.mjs "$@"
|