Skip to content

Commit

Permalink
write build script
Browse files Browse the repository at this point in the history
  • Loading branch information
gogo2464 committed Jan 27, 2024
1 parent e1f9108 commit 6d3292a
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
21 changes: 21 additions & 0 deletions build-all.sh
Original file line number Diff line number Diff line change
@@ -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
7 changes: 7 additions & 0 deletions docs/src/install.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```

0 comments on commit 6d3292a

Please sign in to comment.