mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-06-29 15:31:05 +08:00
Go: rename ragflow_cli to ragflow-cli (#16270)
### What problem does this PR solve? rename ragflow cli binary ### Type of change - [x] Refactoring Signed-off-by: Jin Hai <haijin.chn@gmail.com>
This commit is contained in:
@@ -32,7 +32,7 @@ The Unix installer:
|
||||
|
||||
- detects `linux` or `darwin`
|
||||
- detects `amd64` or `arm64`
|
||||
- downloads `ragflow_cli-{VERSION}-{OS}-{ARCH}`
|
||||
- downloads `ragflow-cli-{VERSION}-{OS}-{ARCH}`
|
||||
- verifies the file with the release `SHA256SUMS`
|
||||
- installs to `/usr/local/bin` by default
|
||||
|
||||
@@ -59,7 +59,7 @@ Install to a custom directory:
|
||||
The Windows installer:
|
||||
|
||||
- detects `windows/amd64` or `windows/arm64`
|
||||
- downloads `ragflow_cli-{VERSION}-windows-{ARCH}.exe`
|
||||
- downloads `ragflow-cli-{VERSION}-windows-{ARCH}.exe`
|
||||
- verifies the file with the release `SHA256SUMS`
|
||||
- installs to `$env:LOCALAPPDATA\Programs\RAGFlow` by default
|
||||
- adds the install directory to the user `PATH`
|
||||
@@ -69,12 +69,12 @@ The Windows installer:
|
||||
The install scripts expect these names:
|
||||
|
||||
```text
|
||||
ragflow_cli-v1.0.0-linux-amd64
|
||||
ragflow_cli-v1.0.0-linux-arm64
|
||||
ragflow_cli-v1.0.0-darwin-amd64
|
||||
ragflow_cli-v1.0.0-darwin-arm64
|
||||
ragflow_cli-v1.0.0-windows-amd64.exe
|
||||
ragflow_cli-v1.0.0-windows-arm64.exe
|
||||
ragflow-cli-v1.0.0-linux-amd64
|
||||
ragflow-cli-v1.0.0-linux-arm64
|
||||
ragflow-cli-v1.0.0-darwin-amd64
|
||||
ragflow-cli-v1.0.0-darwin-arm64
|
||||
ragflow-cli-v1.0.0-windows-amd64.exe
|
||||
ragflow-cli-v1.0.0-windows-arm64.exe
|
||||
SHA256SUMS
|
||||
install.sh
|
||||
install.ps1
|
||||
|
||||
@@ -18,7 +18,7 @@ param(
|
||||
[string]$Version = "latest",
|
||||
[string]$InstallDir = "$env:LOCALAPPDATA\Programs\RAGFlow",
|
||||
[string]$GitHubRepo = "infiniflow/ragflow",
|
||||
[string]$CliName = "ragflow_cli"
|
||||
[string]$CliName = "ragflow-cli"
|
||||
)
|
||||
|
||||
$ErrorActionPreference = "Stop"
|
||||
|
||||
@@ -19,7 +19,7 @@ set -eu
|
||||
|
||||
INSTALL_DIR="${INSTALL_DIR:-/usr/local/bin}"
|
||||
GITHUB_REPO="${GITHUB_REPO:-infiniflow/ragflow}"
|
||||
CLI_NAME="${CLI_NAME:-ragflow_cli}"
|
||||
CLI_NAME="${CLI_NAME:-ragflow-cli}"
|
||||
VERSION="${VERSION:-latest}"
|
||||
|
||||
RELEASE_API="https://api.github.com/repos/${GITHUB_REPO}/releases/latest"
|
||||
|
||||
Reference in New Issue
Block a user