Skip to content

Commit 3a99796

Browse files
authored
Merge pull request #415 from hyperware-ai/hf/setup-make-it-just-work
setup: make it Just Work
2 parents 7c79276 + 4f7b256 commit 3a99796

2 files changed

Lines changed: 32 additions & 1 deletion

File tree

README.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,3 +96,29 @@ NodeJS (v18 or higher) and NPM are required to build and develop the UI.
9696
The UI is written in React with Vite as the bundler + reloader.
9797

9898
To use `npm start` instead of `npm run dev`, use `kit dev-ui --release`.
99+
100+
## Appendix: Deps for Debian/Ubuntu
101+
102+
```bash
103+
apt update
104+
DEBIAN_FRONTEND=noninteractive apt install -y curl git build-essential pkg-config libssl-dev libclang-dev python3 python3-venv
105+
106+
curl https://sh.rustup.rs -sSf | sh -s -- -y
107+
. ~/.bashrc
108+
cargo install --git https://github.com/hyperware-ai/kit --locked
109+
kit setup -d --non-interactive
110+
. ~/.bashrc
111+
```
112+
113+
## Appendix: Deps for macOS
114+
115+
```bash
116+
xcode-select --install
117+
brew install pkg-config llvm openssl@3 python@3.12 libusb
118+
119+
curl https://sh.rustup.rs -sSf | sh -s -- -y
120+
. ~/.bashrc
121+
cargo install --git https://github.com/hyperware-ai/kit --locked
122+
kit setup -d --non-interactive
123+
. ~/.bashrc
124+
```

src/setup/mod.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ const MINIMUM_NPM_MINOR: u32 = 0;
2020
pub const REQUIRED_PY_MAJOR: u32 = 3;
2121
pub const MINIMUM_PY_MINOR: u32 = 10;
2222
pub const REQUIRED_PY_PACKAGE: &str = "componentize-py==0.11.0";
23+
const WASM_TOOLS_VERSION: &str = "1.225.0";
2324

2425
#[derive(Clone)]
2526
pub enum Dependency {
@@ -476,7 +477,11 @@ fn install_deps(deps: Vec<Dependency>, verbose: bool, toolchain: &str) -> Result
476477
Dependency::RustWasm32Wasi => {
477478
call_rustup("target add wasm32-wasip1", verbose, toolchain)?
478479
}
479-
Dependency::WasmTools => call_cargo("install wasm-tools", verbose, toolchain)?,
480+
Dependency::WasmTools => call_cargo(
481+
&format!("install wasm-tools --locked --version {WASM_TOOLS_VERSION}"),
482+
verbose,
483+
toolchain,
484+
)?,
480485
Dependency::Foundry => install_foundry(verbose)?,
481486
Dependency::Docker => {}
482487
}

0 commit comments

Comments
 (0)