diff --git a/app.py b/app.py index 47e405e..48e36ea 100644 --- a/app.py +++ b/app.py @@ -1,4 +1,4 @@ -APP_VERSION = "v3.0.1" +APP_VERSION = "v3.1.0" APP_RELEASE_DATE = "2025-09-26" from flask import Flask, render_template, request, redirect, url_for, flash diff --git a/bump_version.py b/bump_version.py index d62f28b..83b3f40 100644 --- a/bump_version.py +++ b/bump_version.py @@ -13,12 +13,16 @@ import subprocess from pathlib import Path +# --- FILE TARGETS --- APP_FILE = Path("app.py") CHANGELOG_FILE = Path("CHANGELOG.md") INSTALL_WIN = Path("install_windows.ps1") UNINSTALL_WIN = Path("uninstall_windows.ps1") UNINSTALL_SH = Path("uninstall.sh") +INSTALL_SH = Path("install.sh") +RPI_INSTALL_SH = Path("retroiptv_rpi.sh") +# ------------------------------------------------------- def update_app_py(new_version: str): """Update APP_VERSION in app.py, add if missing""" content = APP_FILE.read_text().splitlines() @@ -80,7 +84,6 @@ def update_script_version(file: Path, new_version: str, is_bash: bool): updated = [] found = False - # Regex for version line if is_bash: pattern = re.compile(r'^\s*VERSION\s*=\s*".*"') replacement = f'VERSION="{new_version}"' @@ -96,7 +99,6 @@ def update_script_version(file: Path, new_version: str, is_bash: bool): updated.append(line) if not found: - # Insert at top updated.insert(0, replacement) print(f"ℹ️ VERSION not found in {file}, added at top") @@ -107,8 +109,14 @@ def git_commit(new_version: str): """Commit changes with git""" try: subprocess.run( - ["git", "add", str(APP_FILE), str(CHANGELOG_FILE), - str(INSTALL_WIN), str(UNINSTALL_WIN), str(UNINSTALL_SH)], + ["git", "add", + str(APP_FILE), + str(CHANGELOG_FILE), + str(INSTALL_WIN), + str(UNINSTALL_WIN), + str(UNINSTALL_SH), + str(INSTALL_SH), + str(RPI_INSTALL_SH)], check=True ) subprocess.run( @@ -130,14 +138,15 @@ def main(): update_app_py(new_version) update_changelog(new_version) - # Update other scripts + # Update all installers/uninstallers update_script_version(INSTALL_WIN, new_version, is_bash=False) update_script_version(UNINSTALL_WIN, new_version, is_bash=False) update_script_version(UNINSTALL_SH, new_version, is_bash=True) + update_script_version(INSTALL_SH, new_version, is_bash=True) + update_script_version(RPI_INSTALL_SH, new_version, is_bash=True) if do_commit: git_commit(new_version) if __name__ == "__main__": main() - diff --git a/install.sh b/install.sh index d17c79a..0197951 100644 --- a/install.sh +++ b/install.sh @@ -1,7 +1,9 @@ #!/bin/bash set -e -VERSION="3.0.1" +VERSION="3.1.0" # RetroIPTVGuide installer version +# RetroIPTVGuide Debian/Ubuntu Installer +# License: CC BY-NC-SA 4.0 TIMESTAMP=$(date +"%Y-%m-%d_%H-%M-%S") LOGFILE="install_${TIMESTAMP}.log" diff --git a/install_windows.ps1 b/install_windows.ps1 index 2bf2ccf..5e1d837 100644 --- a/install_windows.ps1 +++ b/install_windows.ps1 @@ -1,4 +1,4 @@ -$VERSION = "3.0.0" +$VERSION = "3.1.0" <# RetroIPTVGuide Windows Installer Clean version with only prerequisite checks and service setup diff --git a/retroiptv_rpi.sh b/retroiptv_rpi.sh index 81a4fdd..8419932 100644 --- a/retroiptv_rpi.sh +++ b/retroiptv_rpi.sh @@ -1,9 +1,11 @@ #!/bin/bash +VERSION="3.1.0" # RetroIPTVGuide Raspberry Pi installer version # RetroIPTVGuide Raspberry Pi Installer (Headless, Pi3/4/5) # Installs to /home/iptv/iptv-server for consistency with Debian/Windows # Logs to /var/log/retroiptvguide/install-YYYYMMDD-HHMMSS.log # License: CC BY-NC-SA 4.0 + # --- Banner --- cat <<'EOF' ░█████████ ░██ ░██████░█████████ ░██████████░██ ░██ ░██████ ░██ ░██ diff --git a/uninstall.sh b/uninstall.sh index dfd6b21..4532900 100644 --- a/uninstall.sh +++ b/uninstall.sh @@ -1,4 +1,4 @@ -VERSION="3.0.0" +VERSION="3.1.0" #!/usr/bin/env bash # RetroIPTVGuide uninstall script # Run with sudo on Linux; run from Administrator shell on Windows diff --git a/uninstall_windows.ps1 b/uninstall_windows.ps1 index ff49b83..9b97334 100644 --- a/uninstall_windows.ps1 +++ b/uninstall_windows.ps1 @@ -1,4 +1,4 @@ -$VERSION = "3.0.0" +$VERSION = "3.1.0" # RetroIPTVGuide Windows Uninstaller # ==================================