Skip to content

Conversation

@rustonbsd
Copy link
Owner

@rustonbsd rustonbsd commented Oct 10, 2025

  • added custom sections for macos win and linux (tested on macos)
  • clippy fmt cleanup
  • fix run twice issue on macos
  • test custom section on linux
  • [-] test custom section on windows
  • add e2e test for supported platforms
  • cargo release
cd rustpatcher/crates/rustpatcher/
git checkout macos-embed-region-error
cargo build --release --example simple
cargo run --release --bin rustpatcher sign ../../target/release/examples/simple --key-file ../../owner_key_example
../../target/release/examples/simple

@rustonbsd
Copy link
Owner Author

for some reason

cargo run --release --bin rustpatcher sign ../../target/release/examples/simple --key-file ../../owner_key_example

when run twice on macos works, once yields an error when running simple.
I will look into it tomorrow

@rustonbsd
Copy link
Owner Author

@rustonbsd
Copy link
Owner Author

failing on windows:

error[E0432]: unresolved import `nix::libc`
  --> crates\rustpatcher\src\updater.rs:12:5
   |
12 | use nix::libc;
   |     ^^^^^^^^^ no `libc` in the root

error[E0433]: failed to resolve: could not find `libc` in `nix`
   --> crates\rustpatcher\src\updater.rs:183:28
    |
183 |             let res = nix::libc::execv(exe.as_ptr(), args.as_ptr());
    |                            ^^^^ could not find `libc` in `nix`

Some errors have detailed explanations: E0432, E0433.
For more information about an error, try `rustc --explain E0432`.
error: could not compile `rustpatcher` (lib) due to 2 previous errors
Error: Process completed with exit code 101.

will ignore for now and declare win as unsupported platform for the moment.

@rustonbsd rustonbsd merged commit 5346216 into main Oct 11, 2025
2 checks 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.

1 participant