Skip to content

Releases: 7onnie/AutoUpdater

AutoUpdater v1.1.0

Choose a tag to compare

@github-actions github-actions released this 30 Jan 10:08

AutoUpdater v1.1.0

What's Changed

Installation

# Bootstrap minimal
curl -sS https://raw.githubusercontent.com/7onnie/AutoUpdater/master/bootstrap/bootstrap_minimal.sh

# Oder als Submodule
git submodule add https://github.com/7onnie/AutoUpdater.git

Documentation

AutoUpdater v1.0.0

Choose a tag to compare

@7onnie 7onnie released this 30 Jan 08:35

AutoUpdater v1.0.0

Erste öffentliche Version der universellen Auto-Update-Engine für Shell-Scripts.

Features

  • ✅ 3 Update-Modi: GitHub Release, Git Pull, Direct Download
  • ✅ Bootstrap-Loader (nur 30 Zeilen)
  • ✅ Standalone-Version (450 Zeilen)
  • ✅ Vollständige Dokumentation (Setup, Deployment, Modes, Migration)
  • ✅ Test-Suite mit 15+ Tests
  • ✅ GitHub Actions Workflows
  • ✅ 6 Beispiel-Scripts

Installation

# Bootstrap minimal
curl -sS https://raw.githubusercontent.com/7onnie/AutoUpdater/main/bootstrap/bootstrap_minimal.sh

# Standalone
curl -sS https://raw.githubusercontent.com/7onnie/AutoUpdater/main/standalone/auto_update_standalone.sh

Quick Start

#!/bin/bash
SCRIPT_VERSION="1.0.0"

UPDATE_MODE="github_release"
UPDATE_GITHUB_USER="7onnie"
UPDATE_GITHUB_REPO="mein-repo"
GITHUB_TOKEN="${GITHUB_TOKEN:-}"

# Bootstrap (30 Zeilen)
auto_update() {
    local ENGINE_URL="https://raw.githubusercontent.com/7onnie/AutoUpdater/main/lib/auto_update_engine.sh"
    local CACHE_FILE="/tmp/auto_update_cache/engine.sh"
    mkdir -p "$(dirname "$CACHE_FILE")"
    if [[ -f "$CACHE_FILE" && -n "$(find "$CACHE_FILE" -mmin -1440 2>/dev/null)" ]]; then
        source "$CACHE_FILE" && _auto_update_main "$UPDATE_MODE" && return 0
    fi
    if curl -sS --max-time 30 "$ENGINE_URL" -o "$CACHE_FILE" 2>/dev/null; then
        source "$CACHE_FILE" && _auto_update_main "$UPDATE_MODE" && return 0
    else
        echo "⚠️  Auto-Update nicht verfügbar"
        return 1
    fi
}

auto_update
echo "Script läuft v$SCRIPT_VERSION"

Dokumentation

Support