Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion app.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down
21 changes: 15 additions & 6 deletions bump_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down Expand Up @@ -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}"'
Expand All @@ -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")

Expand All @@ -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(
Expand All @@ -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()

4 changes: 3 additions & 1 deletion install.sh
Original file line number Diff line number Diff line change
@@ -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"

Expand Down
2 changes: 1 addition & 1 deletion install_windows.ps1
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
$VERSION = "3.0.0"
$VERSION = "3.1.0"
<#
RetroIPTVGuide Windows Installer
Clean version with only prerequisite checks and service setup
Expand Down
2 changes: 2 additions & 0 deletions retroiptv_rpi.sh
Original file line number Diff line number Diff line change
@@ -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'
░█████████ ░██ ░██████░█████████ ░██████████░██ ░██ ░██████ ░██ ░██
Expand Down
2 changes: 1 addition & 1 deletion uninstall.sh
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion uninstall_windows.ps1
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
$VERSION = "3.0.0"
$VERSION = "3.1.0"
# RetroIPTVGuide Windows Uninstaller
# ==================================

Expand Down