Skip to content

N1xUser/SublimeText-Patch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

7 Commits
Β 
Β 
Β 
Β 

Repository files navigation

πŸ–₯️ ST-Patch

🌟 Overview

The Sublime Text Patcher is a powerful Python utility designed to patch the HEX values from 80 79 05 00 0F 94 C2 to C6 41 05 01 B2 00 90 and restore Sublime Text installation in case you want to go back. This script manage Sublime Text executable files and prevent unwanted updates if needed.

Python Version License Windows Support

✨ Features

  • πŸ”’ Patch Sublime Text executable
  • πŸ”„ Restore Sublime Text to its original state
  • 🚫 Block Sublime Text update servers via hosts file modification
  • πŸ’» Supports multiple drive locations in case is not installed on the main disk
  • πŸ›‘οΈ Requires administrator privileges to work

πŸ”§ Prerequisites

  • Windows
  • Python 3.8 or higher
  • Administrator Privileges
  • Installed Sublime Text Build 4180/4200 or older

πŸ“¦ Required Dependencies

  • psutil
  • shutil
  • ctypes

πŸš€ Installation

  1. Clone the repository:

    git clone https://github.com/N1xUser/SublimeText-Patch.git
    cd SublimeText-Patch-main
  2. Install required dependencies:

    pip install psutil

πŸ’‘ Usage

Running the Script

Run the script with administrator privileges:

SublimeTextPatch.py

Interactive Menu Options

  1. Patch Sublime Text

    • Creates a backup of the current executable with the .bkp extension
    • Modifies the executable to disable specific functionalities
    • Blocks update servers via hosts file
  2. Restore Sublime Text

    • Restores the executable from the backup
    • Removes update server blocks from hosts file

⚠️ Important Warnings

  • Always backup your data before running the script
  • Requires administrative permissions

πŸ›‘οΈ Safety Measures

  • Automatic backup creation before modifications
  • User confirmation for critical actions
  • Comprehensive error handling

πŸ› Reporting Issues

Report any issues or suggest improvements by opening a GitHub issue in the repository.


🌈 Disclaimer

This script is provided without warranty of working of any kind. Use it for non comertial projects and at your own discretion.

About

A Hex patch for sublime text

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages