Skip to content

Add BinMod.exe support#15

Merged
benmusson merged 3 commits intobenmusson:mainfrom
haata:binmod
Jun 9, 2025
Merged

Add BinMod.exe support#15
benmusson merged 3 commits intobenmusson:mainfrom
haata:binmod

Conversation

@haata
Copy link
Contributor

@haata haata commented Jun 9, 2025

Fixes (#14)

Retrieves BinMod.ahk and compiles (using Ahk2Exe) from the same sha as the ahk2exe release selected.

Doesn't require any configuration (this is done in code using ;@Ahk2Exec-PostExec, see https://www.autohotkey.com/docs/v2/misc/Ahk2ExeDirectives.htm#PostExec).
https://github.com/AutoHotkey/Ahk2Exe/blob/master/BinMod.ahk

haata added 2 commits June 1, 2025 14:52
- Uses the release tag of ahk2exe to find the correct BinMod.ahk to
  download
  * This file is not bundled with the release, so we need to dig a bit
    more to download it directly from the source tree
  * Determining the 'latest' tag requires an additional request (as we
    need the actual tag name to retrieve BinMod.ahk)
- Install BinMode.exe along side ahk2exe and upx (where it's expected to
  be)
@benmusson benmusson self-assigned this Jun 9, 2025
- Use shared function for getting release information
- Check for previously installed BinMod
- Validate BinMod compilation
- Add tests
@benmusson
Copy link
Owner

benmusson commented Jun 9, 2025

@haata Overall looked good.
I added checking + validation for BinMod installation, and moved the GitHub api stuff to a shared function.

  1. Any feedback on my revisions?
  2. Do the test files I added appropriately test the usage of BinMod?

@haata
Copy link
Contributor Author

haata commented Jun 9, 2025

Nah, I think you're revisions look great (I'm mostly just guessing when it comes to Powershell 😆 ).

As for usages of BinMod, I think that should be sufficient. Really just need something that calls BinMod.exe, the functionality of BinMod is less important as that may change per release.

Thanks a bunch for cleaning it up.

@benmusson benmusson merged commit d779a7d into benmusson:main Jun 9, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants