chore(install): update install.ps1 for China mirrors
CI / Detect affected areas (push) Has been cancelled
CI / OSV scan (push) Has been cancelled
Docker Build, Test, and Publish / build (amd64, type=gha,scope=docker-amd64, type=gha,mode=max,scope=docker-amd64, linux/amd64, ubuntu-latest) (push) Has been cancelled
Docker Build, Test, and Publish / build (arm64, type=gha,scope=docker-arm64, type=gha,mode=max,scope=docker-arm64, linux/arm64, ubuntu-24.04-arm) (push) Has been cancelled
CI / Python tests (push) Has been cancelled
CI / Python lints (push) Has been cancelled
CI / JS & TS checks (push) Has been cancelled
CI / Desktop E2E (push) Has been cancelled
CI / Docs Site (push) Has been cancelled
CI / Deny unrelated histories (push) Has been cancelled
CI / Check contributors (push) Has been cancelled
CI / Check uv.lock (push) Has been cancelled
CI / package-lock.json diff (push) Has been cancelled
CI / Lint Docker scripts (push) Has been cancelled
CI / Build&Test Docker image (push) Has been cancelled
CI / Supply-chain scan (push) Has been cancelled
CI / Review label gate (push) Has been cancelled
CI / CI review comment (live) (push) Has been cancelled
CI / All required checks pass (push) Has been cancelled
CI / CI timing report (push) Has been cancelled
Docker Build, Test, and Publish / publish (amd64, type=gha,scope=docker-amd64, type=gha,mode=max,scope=docker-amd64, linux/amd64, ubuntu-latest) (push) Has been cancelled
Docker Build, Test, and Publish / publish (arm64, type=gha,scope=docker-arm64, type=gha,mode=max,scope=docker-arm64, linux/arm64, ubuntu-24.04-arm) (push) Has been cancelled
Docker Build, Test, and Publish / merge (push) Has been cancelled
OSV-Scanner / Scan lockfiles (push) Has been cancelled
OSV-Scanner / Emit review status (push) Has been cancelled
CI / Detect affected areas (push) Has been cancelled
CI / OSV scan (push) Has been cancelled
Docker Build, Test, and Publish / build (amd64, type=gha,scope=docker-amd64, type=gha,mode=max,scope=docker-amd64, linux/amd64, ubuntu-latest) (push) Has been cancelled
Docker Build, Test, and Publish / build (arm64, type=gha,scope=docker-arm64, type=gha,mode=max,scope=docker-arm64, linux/arm64, ubuntu-24.04-arm) (push) Has been cancelled
CI / Python tests (push) Has been cancelled
CI / Python lints (push) Has been cancelled
CI / JS & TS checks (push) Has been cancelled
CI / Desktop E2E (push) Has been cancelled
CI / Docs Site (push) Has been cancelled
CI / Deny unrelated histories (push) Has been cancelled
CI / Check contributors (push) Has been cancelled
CI / Check uv.lock (push) Has been cancelled
CI / package-lock.json diff (push) Has been cancelled
CI / Lint Docker scripts (push) Has been cancelled
CI / Build&Test Docker image (push) Has been cancelled
CI / Supply-chain scan (push) Has been cancelled
CI / Review label gate (push) Has been cancelled
CI / CI review comment (live) (push) Has been cancelled
CI / All required checks pass (push) Has been cancelled
CI / CI timing report (push) Has been cancelled
Docker Build, Test, and Publish / publish (amd64, type=gha,scope=docker-amd64, type=gha,mode=max,scope=docker-amd64, linux/amd64, ubuntu-latest) (push) Has been cancelled
Docker Build, Test, and Publish / publish (arm64, type=gha,scope=docker-arm64, type=gha,mode=max,scope=docker-arm64, linux/arm64, ubuntu-24.04-arm) (push) Has been cancelled
Docker Build, Test, and Publish / merge (push) Has been cancelled
OSV-Scanner / Scan lockfiles (push) Has been cancelled
OSV-Scanner / Emit review status (push) Has been cancelled
- Use Gitea instead of GitHub - Use Tsinghua PyPI mirror - Use npmmirror for Node.js and Git
This commit is contained in:
Regular → Executable
+7
-7
@@ -136,8 +136,8 @@ foreach ($tmpVar in @('TEMP', 'TMP')) {
|
||||
# Configuration
|
||||
# ============================================================================
|
||||
|
||||
$RepoUrlSsh = "git@github.com:NousResearch/hermes-agent.git"
|
||||
$RepoUrlHttps = "https://github.com/NousResearch/hermes-agent.git"
|
||||
$RepoUrlSsh = "git@git.yierp.vip:bi/hermes-agent.git"
|
||||
$RepoUrlHttps = "http://git.yierp.vip:917/bi/hermes-agent.git"
|
||||
$PythonVersion = "3.11"
|
||||
# Minor versions the installer accepts when the requested $PythonVersion isn't
|
||||
# available, in preference order. uv discovers both uv-managed and system
|
||||
@@ -902,7 +902,7 @@ function Install-Git {
|
||||
$downloadIsZip = $false
|
||||
}
|
||||
|
||||
$downloadUrl = "https://github.com/git-for-windows/git/releases/download/$gitTag/$assetName"
|
||||
$downloadUrl = "https://npmmirror.com/mirrors/node/v$gitTag/$assetName"
|
||||
$downloadExt = if ($downloadIsZip) { "zip" } else { "7z.exe" }
|
||||
$tmpFile = "$env:TEMP\$assetName"
|
||||
$gitDir = "$HermesHome\git"
|
||||
@@ -1103,7 +1103,7 @@ function Test-Node {
|
||||
Write-Info "(no admin rights required; isolated from any system Node install)"
|
||||
try {
|
||||
$arch = Get-WindowsArch
|
||||
$indexUrl = "https://nodejs.org/dist/latest-v${NodeVersion}.x/"
|
||||
$indexUrl = "https://npmmirror.com/mirrors/node/v${NodeVersion}.x/"
|
||||
$indexPage = Invoke-WebRequest -Uri $indexUrl -UseBasicParsing
|
||||
$zipName = ($indexPage.Content | Select-String -Pattern "node-v${NodeVersion}\.\d+\.\d+-win-${arch}\.zip" -AllMatches).Matches[0].Value
|
||||
|
||||
@@ -1663,13 +1663,13 @@ function Install-Repository {
|
||||
# for. GitHub supports archive URLs for commits, tags, and
|
||||
# branches; we honour Commit > Tag > Branch.
|
||||
if ($Commit) {
|
||||
$zipUrl = "https://github.com/NousResearch/hermes-agent/archive/$Commit.zip"
|
||||
$zipUrl = "http://git.yierp.vip:917/bi/hermes-agent/archive/$Commit.zip"
|
||||
$zipLabel = $Commit
|
||||
} elseif ($Tag) {
|
||||
$zipUrl = "https://github.com/NousResearch/hermes-agent/archive/refs/tags/$Tag.zip"
|
||||
$zipUrl = "http://git.yierp.vip:917/bi/hermes-agent/archive/refs/tags/$Tag.zip"
|
||||
$zipLabel = $Tag
|
||||
} else {
|
||||
$zipUrl = "https://github.com/NousResearch/hermes-agent/archive/refs/heads/$Branch.zip"
|
||||
$zipUrl = "http://git.yierp.vip:917/bi/hermes-agent/archive/refs/heads/$Branch.zip"
|
||||
$zipLabel = $Branch
|
||||
}
|
||||
$zipPath = "$env:TEMP\hermes-agent-$zipLabel.zip"
|
||||
|
||||
Reference in New Issue
Block a user