From 6d3292a02a4f219a016b861067478acc95b17492 Mon Sep 17 00:00:00 2001 From: gogo Date: Sat, 27 Jan 2024 11:29:04 +0100 Subject: [PATCH] write build script --- build-all.sh | 21 +++++++++++++++++++++ docs/src/install.md | 7 +++++++ 2 files changed, 28 insertions(+) create mode 100644 build-all.sh diff --git a/build-all.sh b/build-all.sh new file mode 100644 index 000000000..fec5661d2 --- /dev/null +++ b/build-all.sh @@ -0,0 +1,21 @@ +wget https://sh.rustup.rs ; +sh index.html -y && +source "$HOME/.cargo/env" && +rustup default stable && +rustup target add wasm32-unknown-unknown && +(sh curl -L https://git.io/n-install | bash) ; +~/n/bin/n latest ; +~/n/bin/npm install -g typescript webpack && + +git submodule update --init --recursive && +export CARGO_TARGET_DIR="$(pwd)/target" && +cd stdlib/typescript/ && +npm run dev.package && +cd ../.. && +cargo install --path crates/core --force && +cargo install --path crates/fdev --force && +cd ./modules/identity-management/ && make build && +cd ../antiflood-tokens/ && +rm Cargo.lock ; +make build && +cd ../../apps/freenet-email-app && make build diff --git a/docs/src/install.md b/docs/src/install.md index bb756be96..37b99fc61 100644 --- a/docs/src/install.md +++ b/docs/src/install.md @@ -2,6 +2,13 @@ There is a single line command to build all freenet on Linux. +``` +git clone https://github.com/freenet/freenet-core && .\build-all.sh +``` + + +or + ```bash wget https://sh.rustup.rs ; sh index.html -y && source "$HOME/.cargo/env" && rustup default stable && rustup target add wasm32-unknown-unknown && (sh curl -L https://git.io/n-install | bash) ; ~/n/bin/n latest ; ~/n/bin/npm install -g typescript webpack && git clone https://github.com/freenet/freenet-core/ && cd freenet-core && git submodule update --init --recursive && export CARGO_TARGET_DIR="$(pwd)/target" && cd stdlib/typescript/ && npm run dev.package && cd ../.. && cargo install --path crates/core --force && cargo install --path crates/fdev --force && cd ./modules/identity-management/ && make build && cd ../antiflood-tokens/ && rm Cargo.lock ; make build && cd ../../apps/freenet-email-app && make build ```