From 09487934c91f8b8932bc868e642a9cf44dde0793 Mon Sep 17 00:00:00 2001 From: Jonathon Byrdziak Date: Wed, 18 Mar 2026 10:22:55 -0700 Subject: [PATCH] Auto-update install script during build Run `just update-installer` after `yarn website:build` so the deploy always includes the latest install script from the protocol repo. Also copy install.sh into build/ directory alongside static/. Co-Authored-By: Claude Opus 4.6 --- justfile | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/justfile b/justfile index 11403a7..5fe3c2e 100644 --- a/justfile +++ b/justfile @@ -23,11 +23,18 @@ stop: # Build the static site for production build: yarn website:build + just update-installer # Serve the production build on port 80 serve: yarn website:serve -- --port 80 --host 0.0.0.0 +# Pull the latest install script from GitHub into static assets and build output +update-installer: + curl -fsSL https://raw.githubusercontent.com/merchantprotocol/protocol/master/bin/install -o website/static/install.sh + cp website/static/install.sh website/build/install.sh 2>/dev/null || true + @echo "install.sh updated" + # Clean build artifacts and Docusaurus cache clean: cd website && rm -rf build .docusaurus