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>
This commit is contained in:
parent
8cdd88d053
commit
c41ab99841
@ -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"
|
||||
15
deploy.sh
Executable file
15
deploy.sh
Executable file
@ -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"
|
||||
Loading…
Reference in New Issue
Block a user