Skip to content

build from source

wis is a Cargo workspace with a React and TypeScript interface, wired together with Tauri 2. everything runs through the Makefile.

  • Rust via rustup. the repository pins its compiler in rust-toolchain.toml, and rustup installs that exact version (with clippy and rustfmt) the first time you build.
  • Node.js 22.13 or later and pnpm 11 or later. wis is pnpm-only; never use npm, npx, or yarn.
  • the Tauri prerequisites for your platform: Xcode or its command-line tools on macOS (26.4 or later, since the build compiles a small Swift bridge to Apple’s Translation framework), the Microsoft C++ build tools and WebView2 on Windows, and the WebKitGTK development packages on Linux. on Ubuntu 22.04, the CI build installs these:
Terminal window
sudo apt-get install -y libwebkit2gtk-4.1-dev libgtk-3-dev \
libayatana-appindicator3-dev librsvg2-dev patchelf
Terminal window
git clone https://github.com/fuyu-myk/wis-browser.git
cd wis-browser
make install # install the frontend dependencies (pnpm)
make dev # launch the app in development mode

make dev runs pnpm tauri dev with a separate development profile (src-tauri/tauri.dev.conf.json). the dev build runs under its own app identifier, so it keeps its own browsing profile and never touches the data of an installed copy of wis. the built-in Tor client is a default cargo feature, so a plain make dev already includes it. development builds never check for updates.

Terminal window
make build

this produces an optimized app and its installers for your platform. the Makefile picks the target for your machine: Apple Silicon or Intel on macOS, x86_64 on Linux and Windows. set TARGET_TRIPLE to override it.

a local build without a signing identity stays unsigned. only the release workflow signs and notarizes the macOS app; see CI and releases.

commandwhat it does
make installinstall frontend dependencies with pnpm
make devlaunch the app in development mode, on its own dev profile
make buildproduction build and installers for your platform
make build_frontendbuild only the React frontend bundle
make checkcargo check the whole workspace, tests included
make testrun the Rust tests, then the frontend tests
make lintclippy with warnings as errors, then ESLint on the frontend
make fmtformat all Rust code
make fmt-checkcheck Rust formatting without changing files (the CI gate)
make cleanremove build artefacts, the frontend bundle, and node_modules
make helplist every target
Terminal window
cd crates/shell && pnpm exec tsc --noEmit # frontend type check
make lint # clippy, then ESLint
make test # Rust tests, then frontend tests
make fmt-check # Rust formatting, as CI checks it
  • pnpm build in crates/shell runs the same type check (tsc) followed by a production vite build.
  • ESLint enforces the React hooks rules and no-console, all as errors.
  • the frontend tests run on Node’s built-in node:test runner, with no extra dependencies. pnpm test fails if line or function coverage of the frontend’s plain modules (src/lib and each feature’s lib code) drops below 80%. the tests also run the page scripts embedded in the Rust source, read straight from it, so they test the text that ships.

CI runs these gates on macOS, Windows, and Linux for every push and pull request to main and preview. the macOS job also builds for macOS 14, the oldest version wis supports, and fails if the app links anything macOS 14 lacks.

the tor feature, the bundled Arti Tor client, is on by default. to build without it, pass --no-default-features through to cargo:

Terminal window
cd crates/shell
pnpm tauri build -- --no-default-features

read the contributing guide for branch names, commit style, and the review bar. the architecture reference explains how the six crates fit together and where new logic belongs, which is the best starting point if you plan to contribute.