Skip to content

Commit 836a78a

Browse files
authored
Merge pull request #12 from contentauth/update-readme-2
Update readme 2
2 parents 028b848 + 48fa74a commit 836a78a

File tree

1 file changed

+0
-26
lines changed

1 file changed

+0
-26
lines changed

README.md

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -46,29 +46,3 @@ This command will download precompiled binaries for the following systems:
4646
- Windows ARM
4747

4848
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`):
62-
```sh
63-
cd /path/to/my/application
64-
mkdir resources
65-
cp /path/to/c2pa-node/generated/c2pa.node resources/c2pa.node
66-
```
67-
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

Comments
 (0)