https://github.com/elixir-desktop/libpe
Library and tasks to read and update Windows PE file resources
https://github.com/elixir-desktop/libpe
Last synced: 11 months ago
JSON representation
Library and tasks to read and update Windows PE file resources
- Host: GitHub
- URL: https://github.com/elixir-desktop/libpe
- Owner: elixir-desktop
- License: mit
- Created: 2021-12-02T16:22:43.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2024-03-05T09:00:02.000Z (about 2 years ago)
- Last Synced: 2025-03-29T06:22:15.390Z (12 months ago)
- Language: Elixir
- Size: 790 KB
- Stars: 3
- Watchers: 2
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# LibPE
[](https://hex.pm/packages/libpe)
[](https://hexdocs.pm/libpe/)
[](https://hex.pm/packages/libpe)
[](https://github.com/elixir-desktop/libpe/blob/master/LICENSE.md)
[](https://github.com/elixir-desktop/libpe/commits/master)
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)
```bash
mix pe.checksum
```
To update the checksum:
```bash
mix pe.update
```
To list all resources in a file:
```bash
mix pe.dump
```
To set an icon resource (and update the checksum):
```bash
mix pe.update --set-icon
```
## Installation
To add LibPE to your build steps and make the tasks availabe add `libpe` to your list of dependencies in `mix.exs`:
```elixir
def deps do
[
{:libpe, "~> 1.0.0", only: :dev, runtime: false}
]
end
```