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.
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>
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