mirror of
https://github.com/openziti/zrok.git
synced 2024-11-26 10:04:16 +01:00
53 lines
1.3 KiB
Plaintext
53 lines
1.3 KiB
Plaintext
|
---
|
||
|
title: Install zrok in Windows
|
||
|
sidebar_label: Windows
|
||
|
---
|
||
|
|
||
|
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';
|
||
|
|
||
|
## Extract Distribution
|
||
|
|
||
|
<AssetsProvider>
|
||
|
<div className={styles.downloadContainer}>
|
||
|
<DownloadCard
|
||
|
osName="Windows"
|
||
|
osLogo="/img/logo-windows.svg"
|
||
|
/>
|
||
|
</div>
|
||
|
</AssetsProvider>
|
||
|
|
||
|
Unarchive the distribution in a temporary directory:
|
||
|
|
||
|
```text
|
||
|
New-Item -Path "$env:TEMP\zrok" -ItemType Directory -ErrorAction Stop
|
||
|
tar -xf .\zrok*windows*.tar.gz -C "$env:TEMP\zrok"
|
||
|
```
|
||
|
|
||
|
Install the `zrok` executable and include HOME\bin in the search PATH.
|
||
|
|
||
|
```text
|
||
|
$source = Join-Path -Path $env:TEMP -ChildPath "zrok\zrok.exe"
|
||
|
$destination = Join-Path -Path $env:HOME -ChildPath "bin\zrok.exe"
|
||
|
New-Item -Path $destination -ItemType Directory -ErrorAction SilentlyContinue
|
||
|
Copy-Item -Path $source -Destination $destination
|
||
|
$env:path += ";"+$destination
|
||
|
```
|
||
|
|
||
|
With the `zrok` executable in your path, you can then execute the `zrok` directly.
|
||
|
|
||
|
```text
|
||
|
zrok version
|
||
|
```
|
||
|
|
||
|
```buttonless title="Output"
|
||
|
_
|
||
|
_____ __ ___ | | __
|
||
|
|_ / '__/ _ \| |/ /
|
||
|
/ /| | | (_) | <
|
||
|
/___|_| \___/|_|\_\
|
||
|
|
||
|
v0.4.0 [c889005]
|
||
|
```
|