Skip to content

Commit

Permalink
Added detailed instructions for building from source on Windows
Browse files Browse the repository at this point in the history
Signed-off-by: Hasnain Habib Sayed <[email protected]>
  • Loading branch information
has9sayed committed Aug 12, 2024
1 parent 8197acb commit 2077552
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,13 +102,30 @@ Windows | ✅

## Build From Source

### Linux and MacOS
```bash
git clone https://github.com/goharbor/harbor-cli.git
cd harbor-cli/cmd/harbor
go build .
sudo mv harbor /usr/local/bin/
```

### Windows
```bash
git clone https://github.com/goharbor/harbor-cli.git
cd harbor-cli/cmd/harbor
go build .
```
Now, move harbor.exe to your preferred directory (e.g. C:\Program Files\harbor\`harbor.exe`)
Add the directory to your PATH environment variable:
- Open the Start menu and search for "Environment Variables"
- Click on "Edit the system environment variables"
- Click the "Environment Variables" button
- Under "System variables", find and select the "Path" variable, then click "Edit"
- Click "New" and add the directory path (e.g., `C:\Program Files\harbor`)
- Click "OK" to close all dialogs


## Linux and MacOS

use `amd64/arm64` as per your system architecture
Expand Down

0 comments on commit 2077552

Please sign in to comment.