Build from Source

  1. Prerequisites:
  • Zig version 0.15.1 is required
  • Git is required
  • pkg-config is required
  • esbuild is required
  1. Clone the project to your local machine:
git clone https://github.com/MikaShell/mika-shell.git
  1. Enter the project directory:
cd mika-shell
  1. Install dependencies:

Please refer to build ci to install the required libraries on your system.

  1. Start building:
zig build # Build in Debug mode by default
# or
zig build --release=fast # Build in ReleaseFast mode

After 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