mirror of
https://github.com/larksuite/cli.git
synced 2026-07-07 09:11:44 +08:00
Scaffold the lark-cli sec subsystem: the `sec` command tree (install, run, stop, status, config init) and the internal/sec package that drives it. The bootstrap manifest is embedded at build time as JSON, mapping (platform, arch, region) to download URLs. The installer resolves the right artifact for the current host, downloads with optional SHA256 verification, extracts into versions/<version>/, swaps the `current` symlink atomically (copy on Windows), and writes state.json. `sec run` enables the binary as a user-level system service (launchd / systemd-user / registry+VBS) so the OS supervises restarts. After this first install, lark-sec-cli takes over its own upgrade lifecycle.
60 lines
1.8 KiB
JSON
60 lines
1.8 KiB
JSON
[
|
|
{
|
|
"key": 0,
|
|
"buildPlatform": "linux",
|
|
"urls": [
|
|
{
|
|
"urls": {
|
|
"amd64": "https://lf3-cdn-tos.bytegoofy.com/obj/tron-demo/lark-sec-cli/releases/1.0.1-alpha.23/367354993/linux-amd64/linux-amd64-1.0.1-alpha.23.zip",
|
|
"arm64": "https://lf3-cdn-tos.bytegoofy.com/obj/tron-demo/lark-sec-cli/releases/1.0.1-alpha.23/367354993/linux-arm64/linux-arm64-1.0.1-alpha.23.zip"
|
|
},
|
|
"region": "cn"
|
|
}
|
|
],
|
|
"branch": "dev",
|
|
"version": "1.0.1-alpha.23",
|
|
"extra": {
|
|
"pipeline_id": "367354993",
|
|
"upload_date": 1778487420795
|
|
}
|
|
},
|
|
{
|
|
"key": 1,
|
|
"buildPlatform": "win32",
|
|
"urls": [
|
|
{
|
|
"urls": {
|
|
"x86": "https://lf3-cdn-tos.bytegoofy.com/obj/tron-demo/lark-sec-cli/releases/1.0.1-alpha.23/367354993/windows-386/windows-386-1.0.1-alpha.23.zip",
|
|
"amd64": "https://lf3-cdn-tos.bytegoofy.com/obj/tron-demo/lark-sec-cli/releases/1.0.1-alpha.23/367354993/windows-amd64/windows-amd64-1.0.1-alpha.23.zip"
|
|
},
|
|
"region": "cn"
|
|
}
|
|
],
|
|
"branch": "dev",
|
|
"version": "1.0.1-alpha.23",
|
|
"extra": {
|
|
"pipeline_id": "367354993",
|
|
"upload_date": 1778487437393
|
|
}
|
|
},
|
|
{
|
|
"key": 2,
|
|
"buildPlatform": "darwin",
|
|
"urls": [
|
|
{
|
|
"urls": {
|
|
"amd64": "https://lf3-cdn-tos.bytegoofy.com/obj/tron-demo/lark-sec-cli/releases/1.0.1-alpha.23/367354993/darwin-amd64/darwin-amd64-1.0.1-alpha.23.zip",
|
|
"arm64": "https://lf3-cdn-tos.bytegoofy.com/obj/tron-demo/lark-sec-cli/releases/1.0.1-alpha.23/367354993/darwin-arm64/darwin-arm64-1.0.1-alpha.23.zip"
|
|
},
|
|
"region": "cn"
|
|
}
|
|
],
|
|
"branch": "dev",
|
|
"version": "1.0.1-alpha.23",
|
|
"extra": {
|
|
"pipeline_id": "367354993",
|
|
"upload_date": 1778487395152
|
|
}
|
|
}
|
|
]
|