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.
Get 5 new use cases every morning. Free, one short email, unsubscribe anytime.
Get them freeShare: X LinkedIn Hacker News Email Copy link
Disclaimer
Deduped lists open-source repositories that belong to other people. We do not own, maintain, audit, or vouch for any of them, and a repo appearing here is not an endorsement or a safety check. The use cases, steps, and prompts are written by AI and may be incomplete, outdated, or just wrong. Where a use case is marked "Seen in the wild", we link to public posts where someone described something similar, but we have not verified those posts and the use case itself is still our AI's own write-up. Use all of this at your own risk. Only run code, commands, or agents on systems and accounts you are authorized to use, and read the code and every command before you run it, especially anything that touches credentials, files, or the network. Nothing here is professional, security, legal, or financial advice. All trademarks and project names belong to their respective owners, and their use here does not imply affiliation. Content is provided as is, without warranties of any kind. Found a mistake, a safety problem, or something you want removed? Email [email protected] and we will look at it promptly. Full disclaimer page