mirror of
https://github.com/openziti/zrok.git
synced 2024-12-23 07:09:12 +01:00
acf9fe78ce
Default download of binary is in downloads, if running script and the /tmp/zrok directory already exists, an error is thrown -p /tmp/zrok will work even if the directory already exists without throwing an error. Signed-off-by: Stellar <100169718+AdaptiveFailure@users.noreply.github.com>
56 lines
1.3 KiB
Plaintext
56 lines
1.3 KiB
Plaintext
---
|
|
title: Install zrok in macOS
|
|
sidebar_label: macOS
|
|
---
|
|
|
|
import { AssetsProvider } from '@site/src/components/assets-context';
|
|
import DownloadCard from '@site/src/components/download-card';
|
|
import styles from '@site/src/css/download-card.module.css';
|
|
|
|
## Darwin Binary
|
|
|
|
<AssetsProvider>
|
|
<div className={styles.downloadContainer}>
|
|
<DownloadCard
|
|
osName="macOS"
|
|
osLogo="/img/logo-apple.svg"
|
|
/>
|
|
</div>
|
|
</AssetsProvider>
|
|
|
|
Download the binary distribution for your macOS architecture. For Intel Macs use the `amd64` distribution. For Apple Silicon Macs use the `arm64` distribution.
|
|
|
|
1. Unarchive the distribution in a temporary directory.
|
|
|
|
```text
|
|
cd ~/Downloads && mkdir -p /tmp/zrok && tar -xf ./zrok*darwin*.tar.gz -C /tmp/zrok
|
|
```
|
|
|
|
1. Install the `zrok` executable.
|
|
|
|
```text
|
|
mkdir -p ~/bin && install /tmp/zrok/zrok ~/bin/
|
|
```
|
|
|
|
1. Add `~/bin` to your shell's executable search path. Optionally add this to your ~/.zshenv to persist the change.
|
|
|
|
```text
|
|
PATH=~/bin:$PATH
|
|
```
|
|
|
|
1. With the `zrok` executable in your path, you can then execute the `zrok` command from your shell:
|
|
|
|
```text
|
|
zrok version
|
|
```
|
|
|
|
```buttonless title="Output"
|
|
_
|
|
_____ __ ___ | | __
|
|
|_ / '__/ _ \| |/ /
|
|
/ /| | | (_) | <
|
|
/___|_| \___/|_|\_\
|
|
|
|
v0.4.0 [c889005]
|
|
```
|