OverviewFilesCommitsIssuesDocsReleasesPeers

hyper-wallet-desktop / deploy.sh

43 lines · bash ref:
#!/usr/bin/env bash
# DEPLOYMENT SCRIPT FOR HYPER-WALLET-DESKTOP
# This ensures we ALWAYS deploy to the correct channel

set -e

# ⚠️ CRITICAL: Always use the channel name, NOT the key
CHANNEL="hyper-wallet-desktop"

echo "🍐 Hyper Wallet Desktop Deployment"
echo "=================================="
echo ""
echo "Channel: $CHANNEL"
echo ""

# Confirm deployment
read -p "Deploy to $CHANNEL? (y/N): " confirm
if [[ "$confirm" != "y" && "$confirm" != "Y" ]]; then
  echo "❌ Deployment cancelled"
  exit 1
fi

echo ""
echo "📦 Staging changes..."
pear stage $CHANNEL .

echo ""
echo "🚀 Releasing..."
pear release $CHANNEL

echo ""
echo "📡 Updating seeder in tmux..."
echo ""
echo "To restart the seeder in tmux, run:"
echo "  cd /storage/projects/code/hypercore-kb/hyper-fleeky"
echo "  ./scripts/restage-seed.sh hyper-wallet-desktop"
echo ""
echo "Or manually update pear-seed:5:"
echo "  tmux attach -t pear-seed"
echo "  (Navigate to window 5)"
echo "  Ctrl+C to stop seeder"
echo "  pear seed $CHANNEL ."