| Layer | Technology | |-------|-------------| | Compression CLI | 7z (7-Zip), FreeArc, or Zstandard | | Installer UI | NSIS (Nullsoft Scriptable Install System) or Inno Setup | | Language | C++ + Lua (for NSIS) / PowerShell for automation | | Hashing | SHA-256 (via certutil or built-in crypto) | | Difference engine | xdelta3, RTPatch, or Courgette (for patches) |
| Technique | Implementation | |-----------|----------------| | Threaded decompression | 7z x -mmt=8 | | RAM disk cache | Copy compressed file to %TEMP% if >4 GB free RAM | | Background I/O | Use FILE_ATTRIBUTE_TEMPORARY in Win32 | | Resume capability | Save checkpoint after each .bin |
# Example 7-Zip ultra compression 7z a -mx=9 -mfb=273 -ms=on -mmt=off -md=1536m -mqs=on source_dir\* output.7z
is a Windows-based compression and repackaging tool for PC games. It reduces download size by 30–70% using advanced compression, removable content (e.g., optional voiceovers), and efficient installation routines.
Section "Game (required)" SetOutPath "$INSTDIR" File /r "decompressed_game*" WriteUninstaller "$INSTDIR\uninstall.exe" SectionEnd
The Sunlight Repack approach has the potential to significantly impact the renewable energy landscape: