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>
16 lines
342 B
Bash
Executable File
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"
|