Build from Source
- Prerequisites:
- Zig version 0.15.1 is required
- Git is required
- pkg-config is required
- esbuild is required
- Clone the project to your local machine:
git clone https://github.com/MikaShell/mika-shell.git- Enter the project directory:
cd mika-shell- Install dependencies:
Please refer to build ci to install the required libraries on your system.
- Start building:
zig build # Build in Debug mode by default
# or
zig build --release=fast # Build in ReleaseFast modeAfter running the above commands, the executable will be installed into the ./zig-out/bin directory.
If you encounter the error
error: unable to discover remote git server capabilities: HttpConnectionClosing,
this may indicate that your network environment cannot fetch the dependencies. Unfortunately, the current version of Zig does not support using the system network proxy (#15048).
Until Zig provides official support, in order to use a network proxy, you can follow the workaround mentioned in the issue: download the zigcli tool, extract it, locate the zigfetch binary, and place it in the project directory. Then run:
chmod +x ./zigfetch
./zigfetch .to fetch the dependencies, and afterwards re-run:
zig build install