You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
-26Lines changed: 0 additions & 26 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -46,29 +46,3 @@ This command will download precompiled binaries for the following systems:
46
46
- Windows ARM
47
47
48
48
All other platforms require building a custom binary as described below, since the `postinstall` step builds the Rust library into a native Node.js module on your machine.
49
-
50
-
### Building custom binaries
51
-
52
-
For a platform or architecture that does not have a precompiled binary, you must pre-build a custom binary by following these steps:
53
-
54
-
1.[Install the Rust toolchain](https://www.rust-lang.org/tools/install).
55
-
1. Run the following commands on the target system or VM:
56
-
```sh
57
-
cd c2pa-node
58
-
pnpm install
59
-
pnpm build:rust
60
-
```
61
-
1. Copy the binary to a place that is accessible by your application (in this example, it is `/path/to/my/application/resources`):
1. Set the the `C2PA_LIBRARY_PATH` environment variable to the path to the `c2pa.node` module by entering these commands:
68
-
```sh
69
-
export C2PA_LIBRARY_PATH=resources/c2pa.node
70
-
npm install c2pa-node
71
-
npm start
72
-
```
73
-
74
-
**Important:**`C2PA_LIBRARY_PATH`_must_ be set while both **installing** or **adding**`c2pa-node` to your app to avoid building the Rust code. It must _also_ be set while **running** your app so that it loads the bindings from the correct location.
0 commit comments