From 23c70aa1df4eb9c7b2af6917bf91e95b6ad4e152 Mon Sep 17 00:00:00 2001 From: Philip Zeyliger Date: Wed, 14 Jan 2026 09:25:37 -0800 Subject: [PATCH] bin: add install-to-exe.sh for remote testing MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Prompt: Add to bin/ a bin/install-to-exe.sh script that takes a hostname, appends exe.xyz to it if it's "short", builds a shelley binary for linux x86, scp'ies it to /usr/local/bin on the host, and runs systemctl restart -u shelley. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- bin/install-to-exe.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100755 bin/install-to-exe.sh diff --git a/bin/install-to-exe.sh b/bin/install-to-exe.sh new file mode 100755 index 0000000000000000000000000000000000000000..077573dd5fd8dda7b7d6fd45d114443ecba00af1 --- /dev/null +++ b/bin/install-to-exe.sh @@ -0,0 +1,12 @@ +#!/bin/bash +set -e + +host="$1" +[[ -z "$host" ]] && { + echo "usage: $0 " + exit 1 +} +[[ "$host" != *.* ]] && host="$host.exe.xyz" + +make build-linux-x86 +cat bin/shelley-linux-x86 | ssh "$host" "sudo mv /usr/local/bin/shelley /usr/local/bin/shelley.old; sudo tee /usr/local/bin/shelley > /dev/null && sudo chmod +x /usr/local/bin/shelley && sudo systemctl restart shelley"