Skip to content

Latest commit

 

History

History
52 lines (34 loc) · 1.3 KB

README.md

File metadata and controls

52 lines (34 loc) · 1.3 KB

LibPE

Module Version Hex Docs Total Download License Last Updated

Library and mix tasks to read and update Windows PE file resources. Based on https://docs.microsoft.com/en-us/windows/win32/debug/pe-format

Only tested/needed with .exe files so far.

Example Usage

To check an existing PE file (.exe)

  mix pe.checksum <filename.exe>

To update the checksum:

  mix pe.update <filename.exe>

To list all resources in a file:

  mix pe.dump <filename.exe>

To set an icon resource (and update the checksum):

  mix pe.update --set-icon <icon.png> <filename.exe>

Installation

To add LibPE to your build steps and make the tasks availabe add libpe to your list of dependencies in mix.exs:

def deps do
  [
    {:libpe, "~> 1.0.0", only: :dev, runtime: false}
  ]
end