Add remote agent distribution: install scripts + binaries

- agent.ps1: Windows one-line install script (irm u-claw.org/agent.ps1 | iex)
- agent.sh: macOS/Linux install script (curl -fsSL u-claw.org/agent.sh | bash)
- downloads/: agent binaries for Windows, macOS, Linux
- vercel.json: add Content-Type headers for binary downloads
This commit is contained in:
dongsheng123132
2026-03-22 21:10:57 +08:00
parent fc9e20125d
commit a7db8e55f2
7 changed files with 225 additions and 1 deletions

View File

@@ -1,3 +1,26 @@
{
"outputDirectory": "website"
"outputDirectory": "website",
"headers": [
{
"source": "/downloads/agent.exe",
"headers": [
{ "key": "Content-Type", "value": "application/octet-stream" },
{ "key": "Content-Disposition", "value": "attachment; filename=agent.exe" }
]
},
{
"source": "/downloads/agent",
"headers": [
{ "key": "Content-Type", "value": "application/octet-stream" },
{ "key": "Content-Disposition", "value": "attachment; filename=agent" }
]
},
{
"source": "/downloads/agent-linux",
"headers": [
{ "key": "Content-Type", "value": "application/octet-stream" },
{ "key": "Content-Disposition", "value": "attachment; filename=agent-linux" }
]
}
]
}