Releases: 7onnie/AutoUpdater
Releases · 7onnie/AutoUpdater
Release list
AutoUpdater v1.1.0
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.gitDocumentation
AutoUpdater v1.0.0
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.shQuick 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"