1.0.4 • Published 3 years ago
@tamkelvin313/firewalker v1.0.4
The clone of SerCeMan/firewalker, with adding apple silicon support. For the document please reference the orginal repo.
Apple Silcon (M1) support issue for npm plugin firewalker
The npm package firewalker depends on binary build of wirefilter to run and execute the firewall rules to perform js based unit test. However,the binary build inside the npm package is x86 based, not support with apple silcon machine, bring some troublesome during development.
The following is the guideline to resolve the problem and this plugin is only the clone with below modification
- Clone the following repo
https://github.com/cloudflare/wirefilterwith commit 2334ab150. - Apply the patch file at npm package
SerCeMan/firewalker/blob/master/lib/wirefilter.patch - Build the
wirefilterwithaarch64-apple-darwinarchitecture.
cargo build --release --target aarch64-apple-darwin- Copy the birary file compiled at last step
wirefilter/target/aarch64-apple-darwin/release/libwirefilter_ffi.dylibto replace thenode_modules/firewalker/lib/libwirefilter_ffi.dylib