Автор Тема: OSCam Emu Patch Manager  (Прочитано 211 раз)

0 Пользователей и 1 Гость просматривают эту тему.

sogaz

  • Аксакал
  • *****
  • Спасибо
  • -> Вы поблагодарили: 11698
  • -> Вас поблагодарили: 23689
  • Сообщений: 5289
  • Респект: +3767/-0
OSCam Emu Patch Manager
« : 11 Январь 2026, 13:33:39 »
OSCam Emu Patch Manager by speedy005

1. Patch Management​

    Create Patch: Generates a patch file from the OSCam repositories (streamboard + emu-repo).
    Renew Patch: Recreates the patch including the latest commits.
    Check Patch: Verifies if a patch can be applied cleanly.
    Apply Patch: Applies the patch directly to the temporary OSCam repository.
    Zip Patch: Packages the patch into a .zip file for backup or distribution.
    Backup/Renew Old Patch: Saves the current patch to a backup folder and preserves the old patch.

2. Repository & Git Support​

    Maintains a temporary Git repository (temp_repo) automatically.
    Can fetch commits from upstream repositories (streamboard and emu-repo).
    Shows the last X commits for tracking changes.
    Supports Git status checking to verify patch application.

3. GUI Features​

    Fully graphical interface with buttons for all operations.
    Information window displays real-time logs for all operations.
    Commit counter to specify how many commits to include in patch creation.
    Color scheme selection: change button colors in the GUI.
    Language selection: switch instantly between English and German.
    Animated buttons for better user interaction.

4. Safety & Maintenance​

    Clean Patch Folder safely deletes temporary files but never deletes protected files:
        oscam_patch_manager.py
        oscam_patch_manager_gui.py
        oscam-patch-manager.sh
        oscam-patch-manager-gui.sh
        icons folder
    The icons folder is automatically created and maintained by the tool.

5. Config & Settings​

    Stores user settings in a config.json file, including:
        Language (EN/DE)
        Selected color scheme
    Restores settings automatically on startup.

6. Additional Features​

    Handles missing tools gracefully and informs the user (git, zip, unzip, python3, pip3).
    Provides exit confirmation with localized buttons (Yes/No in English, Ja/Nein in German).
    Fully cross-platform compatible with Python 3.

💡 Summary:
This tool is a complete patch management solution for OSCam Emu: it lets you create, check, apply, backup, and zip patches, track commits, and safely manage the patch folder – all via a friendly GUI with language and color customization.

new file
bug fix with patch version: 2.26.01-11920-802 (71dd9898)
The revision was not changed and adapted to the new one.
Бог наблюдает за тобой.
Так живи, чтобы ему было интересно.

nicoll

  • Аксакал
  • *****
  • Спасибо
  • -> Вы поблагодарили: 9061
  • -> Вас поблагодарили: 13038
  • Сообщений: 2638
  • Респект: +1363/-0
OSCam Emu Patch Manager
« Ответ #1 : 15 Январь 2026, 21:34:53 »
OSCam Emu Patch Generator – Overview

The OSCam Emu Patch Generator is a comprehensive, GUI-based tool for managing, creating, and applying patches for OSCam Emu. It is designed to simplify patching workflows while providing advanced Git integration, backup options, and GitHub deployment.

Key Features:
1. Patch Creation & Management
- Automatically generate patches by comparing the OSCam Emu repository with a streaming OSCam source.
- Supports creating, renewing, and checking patches.
- Includes automatic patch headers with version, commit hash, and patch modifier information.

2. Git Integration
- Clone and manage OSCam and OSCam Emu repositories.
- Apply patches directly to the Git repository.
- Check patch compatibility using Git’s `apply --check`.
- View the latest commits directly in the GUI.
- Manage OSCam Emu Git folder with one-click cleanup and patching.

3. Backup & Version Control
- Backup existing patches to a configurable location.
- Automatically create alternative backups to prevent accidental overwrites.
- Maintain patch history with clear date and version metadata.

4. GitHub Deployment
- Upload patches to a GitHub repository using credentials stored in a secure configuration file.
- Supports forcing commits and pushing all changes to a selected branch.
- No private credentials are stored in the code; all user info comes from a secure JSON configuration.

5. Patch Distribution
- Export patches as ZIP files for easy distribution.
- Includes optional icons for quick identification of actions.

6. Customizable GUI
- Modern PyQt6-based interface with a dynamic info log window.
- Supports multiple languages (English and German) and customizable color themes.
- Includes progress bars, active button highlighting, and an easy-to-use layout for patch actions.

7. Safety & Convenience
- Never deletes critical files from the patch folder.
- Provides user confirmations for destructive actions (cleaning folder, exiting, etc.).
- Ensures all required tools (git, zip, Python3, pip3) are installed.

Technical Notes:
- Developed in Python 3 with PyQt6 and PIL for icons.
- Fully open-source under the MIT license.
- Designed for Linux-based systems with OSCam Emu installed.

Thanks speedy005
Излишняя скромность - кратчайший путь в неизвестность !

Gerakl

  • Друзья
  • Старожил
  • ***
  • Спасибо
  • -> Вы поблагодарили: 2859
  • -> Вас поблагодарили: 2435
  • Сообщений: 531
  • Респект: +292/-0
OSCam Emu Patch Manager
« Ответ #2 : 17 Январь 2026, 18:08:01 »
smal cosmetics

shiko

  • Старожил
  • ***
  • Спасибо
  • -> Вы поблагодарили: 3172
  • -> Вас поблагодарили: 3088
  • Сообщений: 687
  • Респект: +387/-0
OSCam Emu Patch Manager
« Ответ #3 : 05 Февраль 2026, 21:05:56 »
OSCAm Emu Patch Manager – Fixes & Improvements Summary​

    Automatic Update Check at Startup
        Added a 1-second delayed automatic check for plugin updates using QTimer.singleShot.
        Shows a message if an update is available or not.
    Plugin Update Button Improvements
        Clicking the Plugin Update button now shows a proper dialog:
            If a new version is available → asks for confirmation before downloading.
            If already up-to-date → shows a “No new version available” info message.
        Fixed the bug where the old window remained open after updating on startup.
    Commit Count Feature
        Added a label and spinbox to select the number of commits to display.
        The value is now immediately saved to config.json whenever it changes.
        Avoided duplicate spinboxes in the UI.
    Restart Tool Button
        Text now adapts correctly to language changes.
        Added missing English translation for "restart_tool": "Restart Tool" in TEXTS.
    Configuration Saving Method
        Added a reusable save_config_value(key, value) method for writing changes to config.json.
    Text Updates (TEXTS)
        Added missing translations for all new features (commit label, plugin update dialogs, restart button, etc.).
        Ensured both English and German texts are consistent.
    Color Themes for Dark Mode
        Added 15 new dark mode color themes in the format:
        "ThemeName": {"bg": "#1A1A1D", "text": "<BrightColor>"}
        Each theme has a dark background and a bright text color.
    Miscellaneous Fixes
        Fixed plugin_update_action() error regarding unexpected progress_callback argument.
        Ensured smooth update process whether triggered at startup or via the Plugin Update button.


Thanks speedy005