Who it is forA developer who wants to audit, modify or contribute to Uni Switch and needs a local build that matches the released code.
The problemReviewing or changing the app requires a reproducible build and test run on your own machine.
The outcomeThe frontend checks and Rust tests pass, and a desktop build is produced in the bundle output folder.
What you need first
- A desktop computer running Windows, Linux or macOS
- An API address and API Key from your provider
- Codex or Claude Code installed on the same machine
- For building from source: Node.js 20 or newer, Rust 1.89 or newer, and the platform build tools listed in the README
Steps
- Install Node.js 20 or newer, Rust 1.89 or newer, and the platform build tools named in the README.
- Run
corepack enablein the repository folder. - Run
corepack pnpm install --frozen-lockfile. - Run
corepack pnpm typecheckandcorepack pnpm test. - Run
powershell -NoProfile -ExecutionPolicy Bypass -File scripts/with-msvc.ps1 -Action buildon Windows to create the installer.
Prompt for your agent
Clone github.com/dieqiyun/uni-switch and run the frontend typecheck and tests with pnpm. Expected output: typecheck and test results with pass or fail counts. Verify that the lockfile install completed with --frozen-lockfile before running the tests.
Caveat. The README gives the exact build commands only for Windows PowerShell, so Linux and macOS builds need you to follow the platform notes and the linked docs.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for dieqiyun/uni-switch and "Build and test Uni Switch from source"
Add Deduped to Claude Code once
claude mcp add --transport http deduped https://dedupedai.com/mcp
Every Monday: the 5 hottest repos and exactly how to use them. Free, one email a week, unsubscribe anytime.
Get them freeShare: X LinkedIn Hacker News Email Copy link
Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer