Ship the Bare ELF in the release and stop baking host paths into the service.
Rolling release / release (push) Failing after 6m40s
Rolling release / release (push) Failing after 6m40s
The rolling bundle already contains the runtime binary. The installer now starts that file through a relative launcher, and the checkout unit is no longer packed for other users. Co-authored-by: Cursor <[email protected]>
This commit is contained in:
Executable
+15
@@ -0,0 +1,15 @@
|
||||
#!/usr/bin/env bash
|
||||
# Start the Bare ELF shipped with this install. Never use a bare from PATH.
|
||||
set -euo pipefail
|
||||
ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
|
||||
case "$(uname -m)" in
|
||||
x86_64|amd64) BIN="${ROOT}/node_modules/bare-runtime-linux-x64/bin/bare" ;;
|
||||
aarch64|arm64) BIN="${ROOT}/node_modules/bare-runtime-linux-arm64/bin/bare" ;;
|
||||
*) echo "Unsupported architecture: $(uname -m)" >&2; exit 2 ;;
|
||||
esac
|
||||
if [[ ! -x "${BIN}" ]]; then
|
||||
echo "This Jarvis install has no Bare runtime at ${BIN}." >&2
|
||||
echo "Install the official rolling bundle. A Bare binary from PATH is not used." >&2
|
||||
exit 1
|
||||
fi
|
||||
exec "${BIN}" "$@"
|
||||
Reference in New Issue
Block a user