Forge Windows resources on your Mac. Rezmith is a native macOS app and command-line tool for viewing, editing, compiling and decompiling resources in
Windows 32/64-bit executables (.exe .dll .mui .scr .cpl .ocx …), compiled resource files (.res) and
resource scripts (.rc).
Made by Amar Rassam.
Command lines and script files are compatible with Resource Hacker™ by Angus Johnson. Rezmith is an independent project and is not affiliated with or endorsed by its author.
- Resource browser – tree of type → name : language, editor and hex views, back/forward history, find.
- Decompile & recompile (F5) – dialogs, menus, string tables, accelerators, version info, message tables, toolbars, DLGINIT, manifests/HTML/text (UTF-8, UTF-16 or ANSI) and Delphi DFM forms.
- Dialog designer – WYSIWYG editing: move, resize, align, insert controls, copy/paste, property sheets, grid snapping, undo and right-to-left layouts.
- Menu designer – edit captions, IDs, shortcuts and options; insert, move and delete items.
- Media – bitmaps, icons, cursors, PNG/JPEG/GIF, animated cursors and AVI clips with zoom; WAVE and MIDI playback.
- Replace Icon – pick which icon or cursor group to replace, with previews; accepts
.ico,.curor any image (PNG, JPEG, HEIC …). - Edit Externally – open any resource in Preview, Pixelmator, a text editor or any app; every save is imported back automatically.
- Find – search resource names and decompiled text across the file, plus find & replace inside the script editor.
- Resource actions – add (image/binary, from
.res/.rc/.exe, script templates), replace, delete, rename, change language (single, per type, or all), save as.ico .cur .bmp .png .bin .res .rc. - Safe PE writing – rebuilds the resource section, keeps overlays, removes the now-invalid Authenticode
signature, updates the checksum and keeps an
_originalbackup. - RC compiler – preprocessor (
#include, object- and function-like#define,#if/#ifdef/#elif), expressions, escapes, string concatenation,#pragma code_page. - Command line –
-open -save -action -resource -mask -log -scriptwithadd,addoverwrite,addskip,modify,delete,extract,compile,changelanguage(n)and script files.
- macOS 13 Ventura or later (Apple silicon or Intel)
- Xcode or the Command Line Tools (Swift 5.9+) to build
./scripts/build_app.sh # release build → build/Rezmith.app
./scripts/build_app.sh debug # faster debug build
./scripts/build_app.sh release --universal # Apple silicon + IntelThe command-line tool is bundled at Rezmith.app/Contents/MacOS/rezmith (Help ▸ Install Command Line Tool links it into /usr/local/bin), or run it straight from the package:
swift run rezmith -help
swift run rezmith -open app.exe -save icons -action extract -mask ICONGROUP,,
swift run rezmith -open demo.rc -save demo.res -action compile| Path | Contents |
|---|---|
Sources/RezmithCore |
Platform-independent core: PE/RES readers & writers, resource formats, RC compiler, decompiler, DFM, images |
Sources/RezmithApp |
AppKit application: main window, code editor, hex view, image viewer, dialog & menu designers, Replace Icon, external editing |
Sources/RezmithCLI |
Command-line tool |
Tests/rhtest |
Round-trip test harness (decompile → compile → byte compare) |
Tests/Fixtures |
Test resource scripts |
scripts |
App bundle and icon build scripts |
swift run rhtest Tests/Fixtures/demo.rc path/to/any.exe path/to/any.resEvery resource is decompiled, recompiled and compared byte-for-byte; .res and PE files are also rewritten and re-read.
Get the latest build from Releases. See CHANGELOG.md for what changed.