jrunner/deploy.sh
Paul Trowbridge c41ab99841 update and rename deployment script
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 <noreply@anthropic.com>
2026-01-06 21:57:54 -05:00

16 lines
342 B
Bash
Executable File

#!/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"