From 1744a3534c9b7506b49dc2b82147b9a6801f0df3 Mon Sep 17 00:00:00 2001 From: Hasnain Habib Sayed Date: Mon, 12 Aug 2024 22:10:26 +0600 Subject: [PATCH] Added detailed instructions for building from source on Windows Signed-off-by: Hasnain Habib Sayed --- README.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/README.md b/README.md index ac2381e7..0526907f 100644 --- a/README.md +++ b/README.md @@ -102,6 +102,7 @@ Windows | ✅ ## Build From Source +### Linux and MacOS ```bash git clone https://github.com/goharbor/harbor-cli.git cd harbor-cli/cmd/harbor @@ -109,6 +110,22 @@ 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