Files
pulse/scripts/test-update.sh
T
courtmanr@gmail.com b58baa9d14 fix: resolve update mechanism issues and add test mode
- Fix download URL property mismatch (downloadUrl vs browser_download_url)
- Add comprehensive error logging for update failures
- Create test mode for update mechanism (UPDATE_TEST_MODE=true)
- Add test script for easy update testing without releases
- Improve restart logic for different deployment environments
- Add tar package dependency for creating update packages
- Update .gitignore to exclude backup and temp directories
- Add documentation for update testing workflow

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-05-31 23:38:08 +01:00

34 lines
854 B
Bash
Executable File

#!/bin/bash
# Test script for update mechanism
# This script enables test mode for the update system
echo "🧪 Pulse Update Test Mode"
echo "========================"
echo ""
echo "This script will start Pulse in update test mode."
echo "In this mode, the application will simulate an available update"
echo "without requiring a real GitHub release."
echo ""
echo "Press Ctrl+C to stop the server."
echo ""
# Export test environment variables
export UPDATE_TEST_MODE=true
export UPDATE_TEST_VERSION=99.99.99
# Optional: Allow custom test version
if [ "$1" ]; then
export UPDATE_TEST_VERSION=$1
echo "Using test version: $UPDATE_TEST_VERSION"
else
echo "Using default test version: 99.99.99"
fi
echo ""
echo "Starting server with update test mode enabled..."
echo ""
# Start the server
cd "$(dirname "$0")/.." || exit
npm run dev:server