From c41ab998418bae52da9609e719eaa61dd10d1c73 Mon Sep 17 00:00:00 2001 From: Paul Trowbridge Date: Tue, 6 Jan 2026 21:57:54 -0500 Subject: [PATCH] update and rename deployment script MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Renamed copy_to_apt.sh to deploy.sh (clearer name) and updated to: - Use new jrunner/ paths instead of app/ - Add build step so script handles full build+deploy - Create symlink to /usr/local/bin for system-wide access - Remove unused JR environment variable export - Add set -e for error handling - Add progress messages Usage: ./deploy.sh 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 --- copy_to_apt.sh | 6 ------ deploy.sh | 15 +++++++++++++++ 2 files changed, 15 insertions(+), 6 deletions(-) delete mode 100755 copy_to_apt.sh create mode 100755 deploy.sh diff --git a/copy_to_apt.sh b/copy_to_apt.sh deleted file mode 100755 index 972da75..0000000 --- a/copy_to_apt.sh +++ /dev/null @@ -1,6 +0,0 @@ -sudo cp app/build/distributions/app.zip /opt/ -sudo rm -rf /opt/app/ -sudo unzip /opt/app.zip -d /opt/ -sudo rm /opt/app.zip -sudo chown $USER:$USER -R /opt/app/ -export JR="/opt/app/bin/app" diff --git a/deploy.sh b/deploy.sh new file mode 100755 index 0000000..fb7a4a7 --- /dev/null +++ b/deploy.sh @@ -0,0 +1,15 @@ +#!/bin/bash +set -e + +echo "Building jrunner..." +./gradlew build + +echo "Deploying to /opt/jrunner..." +sudo rm -rf /opt/jrunner +sudo unzip jrunner/build/distributions/jrunner.zip -d /opt/ + +echo "Creating symlink..." +sudo ln -sf /opt/jrunner/bin/jrunner /usr/local/bin/jrunner + +echo "✅ Deployment complete!" +echo "Run 'jrunner --help' to test"