-
-
Notifications
You must be signed in to change notification settings - Fork 1
quick start
Get up and running with CyberPatchMaker in 5 minutes.
- Go 1.24.0 installed
- Basic command-line knowledge
git clone https://github.com/cyberofficial/CyberPatchMaker.git
cd CyberPatchMakerWindows (PowerShell):
go build -o patch-gen.exe .\cmd\generator\
go build -o patch-apply.exe .\cmd\applier\Linux/macOS:
go build -o patch-gen ./cmd/generator/
go build -o patch-apply ./cmd/applier/Windows:
.\patch-gen.exe --help
.\patch-apply.exe --helpLinux/macOS:
./patch-gen --help
./patch-apply --helpYou have two versions of your application:
-
Version 1.0.0: 5GB application in
C:\MyApp\v1.0.0 -
Version 1.0.1: 5GB application in
C:\MyApp\v1.0.1
You want to create a small patch file to upgrade 1.0.0 to 1.0.1.
Create a versions directory:
mkdir versions
mkdir versions\1.0.0
mkdir versions\1.0.1Copy your version folders into the structure:
versions/
├── 1.0.0/ # Copy your v1.0.0 here
│ ├── program.exe
│ └── ... (all your files)
└── 1.0.1/ # Copy your v1.0.1 here
├── program.exe
└── ... (all your files)
Windows:
.\patch-gen.exe --versions-dir .\versions --new-version 1.0.1 --output .\patchesLinux/macOS:
./patch-gen --versions-dir ./versions --new-version 1.0.1 --output ./patchesThis will:
- Scan version 1.0.1
- Auto-detect the key file (program.exe)
- Generate patch from 1.0.0 to 1.0.1
- Save to
patches/1.0.0-to-1.0.1.patch
Create a test directory with version 1.0.0:
mkdir test-app
# Copy your 1.0.0 files to test-appRun dry-run to see what would happen:
Windows:
.\patch-apply.exe --patch .\patches\1.0.0-to-1.0.1.patch --current-dir .\test-app --dry-runLinux/macOS:
./patch-apply --patch ./patches/1.0.0-to-1.0.1.patch --current-dir ./test-app --dry-runThis shows you exactly what will be changed without modifying anything.
If the dry-run looks good, apply the patch:
Windows:
.\patch-apply.exe --patch .\patches\1.0.0-to-1.0.1.patch --current-dir .\test-app --verifyLinux/macOS:
./patch-apply --patch ./patches/1.0.0-to-1.0.1.patch --current-dir ./test-app --verifyThis will:
- Check that you have version 1.0.0
- Create a backup of your current files
- Update the files to version 1.0.1
- Check that everything updated correctly
- Keep the backup for manual rollback if needed
Check your test-app directory - it should now be version 1.0.1!
- Learn more about Generator Tool
- Learn more about Applier Tool
- Understand How It Works
- Read about Backup System
"Key file not found": Make sure your application folder contains program.exe, game.exe, app.exe, or main.exe (the main program file)
"Checksum mismatch": Your application files were changed after installation - patches only work on unmodified installations
"Too many arguments": Make sure you're using the latest version of the tools
See Troubleshooting for more help.
Want to verify everything works? Run the comprehensive test suite:
Windows:
.\advanced-test.ps1This runs 59 automated tests (plus 2 optional with additional flags) to validate the entire system.