Skip to content

Commit

Permalink
Provide a single line to build all freenet from source
Browse files Browse the repository at this point in the history
  • Loading branch information
gogo2464 committed Jan 27, 2024
1 parent 8ef468f commit e1f9108
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/src/SUMMARY.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@

# Developer Guide

- [Tutorial: Install freenet](install.md)
- [Tutorial: Create an App](tutorial.md)
- [Contract interfaces](contract-interface.md)
- [freenet.toml format](manifest.md)
Expand Down
7 changes: 7 additions & 0 deletions docs/src/install.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Build freenet from source On Linux:

There is a single line command to build all freenet on Linux.

```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
```

0 comments on commit e1f9108

Please sign in to comment.