仓库迁移

This commit is contained in:
imengying committed 2026-09-08 18:05:31 +08:00
1 parent 906fb126f4
commit 304b98ed69
13 files changed
+32 -32

No files matched your search

+1 -1
View File
@@ -4,7 +4,7 @@ version = "1.0.0"
edition = "2024"
license = "MIT"
description = "Independent Rust telemetry agent for NodeFlare"
repository = "https://github.com/imengying/NodeFlare"
repository = "https://github.com/elysia62/NodeFlare"
[dependencies]
clap = { version = "4.6", default-features = false, features = ["derive", "std", "help", "usage", "error-context", "suggestions"] }
+2 -2
View File
@@ -262,7 +262,7 @@ install_agent() {
trap 'exit 130' INT
trap 'exit 143' TERM
artifact="agent-linux-$arch-$libc"
release_api="https://api.github.com/repos/imengying/NodeFlare/releases/latest"
release_api="https://api.github.com/repos/elysia62/NodeFlare/releases/latest"
log "正在获取 GitHub 最新正式版本($artifact)"
release_json=$(curl --fail --location --silent --show-error --max-time 30 \
-H 'Accept: application/vnd.github+json' \
@@ -291,7 +291,7 @@ install_agent() {
}
')
[ -n "$expected" ] || fail "Release 缺少 $artifact 的 SHA-256 摘要"
release_base="https://github.com/imengying/NodeFlare/releases/download/$release_tag"
release_base="https://github.com/elysia62/NodeFlare/releases/download/$release_tag"
download_url="$release_base/$artifact"
if [ -n "$mirror" ]; then
download_url="$mirror/$release_base/$artifact"
+2 -2
View File
@@ -218,7 +218,7 @@ trap 'exit 129' HUP
trap 'exit 130' INT
trap 'exit 143' TERM
artifact="agent-freebsd-$arch"
release_api="https://api.github.com/repos/imengying/NodeFlare/releases/latest"
release_api="https://api.github.com/repos/elysia62/NodeFlare/releases/latest"
log "正在获取 GitHub 最新正式版本($artifact)"
release_json=$(download_stdout "$release_api")
release_tag=$(printf '%s\n' "$release_json" | tr ',' '\n' | sed -n 's/.*"tag_name"[[:space:]]*:[[:space:]]*"\([^"]*\)".*/\1/p' | head -n 1)
@@ -242,7 +242,7 @@ expected=$(printf '%s\n' "$release_json" | tr '{' '\n' | awk -v name="$artifact"
}
')
[ -n "$expected" ] || fail "Release 缺少 $artifact 的 SHA-256 摘要"
release_base="https://github.com/imengying/NodeFlare/releases/download/$release_tag"
release_base="https://github.com/elysia62/NodeFlare/releases/download/$release_tag"
download_url="$release_base/$artifact"
if [ -n "$mirror" ]; then
download_url="$mirror/$release_base/$artifact"
+2 -2
View File
@@ -192,7 +192,7 @@ trap 'exit 129' HUP
trap 'exit 130' INT
trap 'exit 143' TERM
artifact="agent-macos-aarch64"
release_api="https://api.github.com/repos/imengying/NodeFlare/releases/latest"
release_api="https://api.github.com/repos/elysia62/NodeFlare/releases/latest"
log "正在获取 GitHub 最新正式版本($artifact)"
release_json=$(curl --fail --location --silent --show-error --max-time 30 \
-H 'Accept: application/vnd.github+json' \
@@ -219,7 +219,7 @@ expected=$(printf '%s\n' "$release_json" | tr '{' '\n' | awk -v name="$artifact"
}
')
[ -n "$expected" ] || fail "Release 缺少 $artifact 的 SHA-256 摘要"
release_base="https://github.com/imengying/NodeFlare/releases/download/$release_tag"
release_base="https://github.com/elysia62/NodeFlare/releases/download/$release_tag"
download_url="$release_base/$artifact"
if [ -n "$mirror" ]; then
download_url="$mirror/$release_base/$artifact"
+2 -2
View File
@@ -168,7 +168,7 @@ if ($LASTEXITCODE -ne 0) { Write-InstallError "无法限制程序目录权限" }
& icacls.exe $StateDir /inheritance:r /grant:r '*S-1-5-18:(OI)(CI)F' '*S-1-5-32-544:(OI)(CI)F' | Out-Null
if ($LASTEXITCODE -ne 0) { Write-InstallError "无法限制 Agent 数据目录权限" }
$Temporary = "$AgentFile.$PID.download.exe"
$ReleaseApi = "https://api.github.com/repos/imengying/NodeFlare/releases/latest"
$ReleaseApi = "https://api.github.com/repos/elysia62/NodeFlare/releases/latest"
$Artifact = "agent-windows-x64.exe"
try {
Write-Step "正在获取 GitHub 最新正式版本($Artifact)"
@@ -182,7 +182,7 @@ try {
Write-InstallError "Release 缺少 $Artifact 的 SHA-256 摘要"
}
$ExpectedChecksum = $DigestMatch.Groups[1].Value
$DownloadUrl = "https://github.com/imengying/NodeFlare/releases/download/$($Release.tag_name)/$Artifact"
$DownloadUrl = "https://github.com/elysia62/NodeFlare/releases/download/$($Release.tag_name)/$Artifact"
if ($Mirror) {
$DownloadUrl = "$Mirror/$DownloadUrl"
Write-Step "正在通过下载加速前缀拉取 Agent $($Release.tag_name)"
+1 -1
View File
@@ -37,7 +37,7 @@ const VERSION: &str = match option_env!("NODEFLARE_VERSION") {
Some(version) if !version.is_empty() => version,
_ => env!("CARGO_PKG_VERSION"),
};
const LATEST_RELEASE_API: &str = "https://api.github.com/repos/imengying/NodeFlare/releases/latest";
const LATEST_RELEASE_API: &str = "https://api.github.com/repos/elysia62/NodeFlare/releases/latest";
const PROBE_ATTEMPTS: usize = 4;
const PROBE_TIMEOUT: Duration = Duration::from_secs(1);
const MAX_AGENT_BINARY_BYTES: u64 = 64 * 1024 * 1024;