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

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

sogaz

  • Аксакал
  • *****
  • Спасибо
  • -> Вы поблагодарили: 11736
  • -> Вас поблагодарили: 23707
  • Сообщений: 5292
  • Респект: +3768/-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

  • Аксакал
  • *****
  • Спасибо
  • -> Вы поблагодарили: 9081
  • -> Вас поблагодарили: 13056
  • Сообщений: 2641
  • Респект: +1367/-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

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

shiko

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

   
Автоматическая проверка обновлений при запуске
        Добавлена ​​автоматическая проверка обновлений плагина с задержкой в ​​1 секунду с использованием QTimer.singleShot.
        Отображает сообщение о наличии или отсутствии обновления.
    Улучшения кнопки обновления плагина
        Теперь при нажатии кнопки «Обновить плагин» отображается корректное диалоговое окно:
            Если доступна новая версия, программа запрашивает подтверждение перед загрузкой.
            Если версия уже обновлена, отобразится сообщение «Новая версия недоступна».
        Исправлена ​​ошибка, из-за которой старое окно оставалось открытым после обновления при запуске системы.
    Функция подсчета транзакций
        Добавлены метка и поле выбора количества отображаемых коммитов.
        Теперь значение немедленно сохраняется в файле config.json при каждом его изменении.
        Удален дублирующийся список выбора в пользовательском интерфейсе.
    Кнопка перезапуска инструмента
        Теперь текст корректно адаптируется к изменениям языка.
        Добавлен отсутствующий английский перевод для "restart_tool": "Инструмент перезапуска" в текстовом формате.
    Способ сохранения конфигурации
        Добавлен многоразовый метод save_config_value(key, value) для записи изменений в файл config.json.
    Текстовые обновления (ТЕКСТЫ)
        Добавлены недостающие переводы для всех новых функций (метка коммита, диалоги обновления плагина, кнопка перезапуска и т. д.).
        Обеспечена согласованность текстов на английском и немецком языках.
    Цветовые темы для темного режима
        В формат добавлено 15 новых цветовых тем для темного режима:
        "ThemeName": {"bg": "#1A1A1D", "text": "<BrightColor>"}
        Каждая тема оформления имеет темный фон и светлый цвет текста.
    Различные исправления
        Исправлена ​​ошибка функции plugin_update_action(), связанная с неожиданным аргументом progress_callback.
        Обеспечен бесперебойный процесс обновления, независимо от того, запускается ли оно при запуске системы или через кнопку «Обновить плагин».


                  
                     
                  
                  




Thanks speedy005
« Последнее редактирование: 06 Февраль 2026, 09:23:38 от nike v »

Don S

  • Ветеран
  • ****
  • Спасибо
  • -> Вы поблагодарили: 5576
  • -> Вас поблагодарили: 3641
  • Сообщений: 986
  • Респект: +518/-0
OSCam Emu Patch Manager
« Ответ #4 : Сегодня в 10:18:10 »
OSCam Emu Toolkit - Fixes and Improvements​
Patch Upload Fixed:

    oscam-emu.patch now correctly overwrites the previous version on GitHub.
    Only the patch file is updated; all other repository files remain untouched.
    Commit messages are automatically extracted from the patch file header without unnecessary prefixes like Update patch.

Progress Callback Compatibility:

    All patch-related functions (create_patch, apply_patch, backup_old_patch, zip_patch, github_upload_patch_file) now support progress_callback correctly.
    GUI progress bar reflects task completion properly.

Header Handling:

    Patch headers remain intact.
    Git commit message uses the exact first line of the patch, removing redundant “Update patch” prefixes.

Git Safety:

    During patch uploads, only oscam-emu.patch is replaced; other files in the Git repository are preserved.
    The tool performs git reset --hard and git pull safely to avoid conflicts without deleting unrelated files.
    fix info screen

General Stability:

    Minor syntax and function fixes (create_icons, zip_patch, backup_old_patch) to ensure all features run without errors.