t3code-bin: ship the bundled server CLI as /usr/bin/t3
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.
This commit is contained in:
2 files changed
+17
-2
No files matched your search
Executable
+10
@@ -0,0 +1,10 @@
|
||||
#!/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 "$@"
|
||||
Reference in new issue
Block a user