From ed0bce938dd8b72fedeca0fc8294485a89a0041c Mon Sep 17 00:00:00 2001 From: Niko PLP Date: Sat, 9 Sep 2023 21:08:05 +0300 Subject: [PATCH] readme --- README.md | 22 ++++++++++++++++++++++ ng-app/README.md | 2 +- 2 files changed, 23 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index fba57ff..19483f0 100644 --- a/README.md +++ b/README.md @@ -152,6 +152,28 @@ For usage, see the documentation [here](ngd/README.md). For building the apps, see this [documentation](ng-app/README.md). +#### OpenBSD + +On OpenBSD, a conflict between the installed LibreSSL library and the reqwest crate, need a bit of attention. +Before compiling the daemon for OpenBSD, please comment out lines 32-33 of `p2p-repo/Cargo.toml`. This will be solved soon in a more appropriate way. + +``` +#[target.'cfg(target_arch = "wasm32")'.dependencies] +#reqwest = { version = "0.11.18", features = ["json","native-tls-vendored"] } +``` + +to use the app on OpenBSD, you need to run the daemon locally. + +``` +ngd -l 14400 --save-key +``` + +then open chrome (previously installed with `doas pkg_add chrome`) + +``` +env ENABLE_WASM=1 chrome --enable-wasm --process-per-site --new-window --app=http://localhost:14400 +``` + ### Generate documentation Generate documentation for all packages without their dependencies: diff --git a/ng-app/README.md b/ng-app/README.md index c5b4614..049955d 100644 --- a/ng-app/README.md +++ b/ng-app/README.md @@ -102,7 +102,7 @@ cargo tauri build --target x86_64-pc-windows-msvc rustup target add aarch64-linux-android armv7-linux-androideabi i686-linux-android x86_64-linux-android ``` -- follow the steps for Android in the [Prerquisites guide of Tauri](https://next--tauri.netlify.app/next/guides/getting-started/prerequisites/) +- follow the steps for Android in the [Prerequisites guide of Tauri](https://next--tauri.netlify.app/next/guides/getting-started/prerequisites/) Until I find out how to do this properly, if you are compiling the android app from a macos station, you need to override an env var. this is due to reqwest needing SSL support, and on linux and android it compiles it from source. apparently the compiler (cc-rs) doesn't know that when cross compiling to android targets, the tool ranlib is called llvm-ranlib (and not [target]-ranlib)