-
Notifications
You must be signed in to change notification settings - Fork 884
feat: 添加 32 位 Linux 多架构编译版本 #1065
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,41 @@ | ||
| # lark-cli 32-bit Linux 版本 | ||
|
|
||
| > 飞书 lark-cli 命令行工具的多架构 Linux 编译版本 | ||
|
|
||
| ## 下载 | ||
|
|
||
| 请到 [Releases](https://github.com/larksuite/cli/releases) 页面下载对应架构的二进制文件。 | ||
|
|
||
| ## 支持的架构 | ||
|
|
||
| | 二进制文件 | 架构 | 类型 | | ||
| |-----------|------|------| | ||
| | lark-cli-linux-386 | i386 | 32-bit x86 | | ||
| | lark-cli-linux-arm | ARM | 32-bit ARM | | ||
| | lark-cli-linux-arm64 | ARM64 | 64-bit ARM | | ||
| | lark-cli-linux-mips | MIPS | 32-bit 大端 | | ||
| | lark-cli-linux-mipsle | MIPS | 32-bit 小端 | | ||
| | lark-cli-linux-mips64 | MIPS64 | 64-bit 大端 | | ||
| | lark-cli-linux-mips64le | MIPS64 | 64-bit 小端 | | ||
| | lark-cli-linux-ppc64 | PowerPC | 64-bit | | ||
| | lark-cli-linux-s390x | IBM S/390 | 64-bit | | ||
| | lark-cli-linux-riscv64 | RISC-V | 64-bit | | ||
|
|
||
| ## 使用方法 | ||
|
|
||
| ```bash | ||
| # 下载对应架构的版本 | ||
| wget https://github.com/larksuite/cli/releases/download/v32bit/assets/lark-cli-linux-386 | ||
|
|
||
| # 赋予执行权限 | ||
| chmod +x lark-cli-linux-386 | ||
|
|
||
| # 运行 | ||
| ./lark-cli-linux-386 --help | ||
| ``` | ||
|
|
||
| ## 编译说明 | ||
|
|
||
| 这些版本使用修复后的 `oapi-sdk-go` SDK 编译,以支持 32 位系统。 | ||
|
|
||
| SDK 修复 PR: https://github.com/larksuite/oapi-sdk-go/pull/211 | ||
|
Comment on lines
+39
to
+41
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧩 Analysis chain🏁 Script executed: #!/bin/bash
# 验证仓库内是否已落地 SDK 修复(只读)
set -e
echo "== go.mod dependency =="
rg -n 'github.com/larksuite/oapi-sdk-go/v3|^replace ' go.mod
echo
echo "== go.sum entries =="
rg -n 'github.com/larksuite/oapi-sdk-go/v3' go.sum || true
echo
echo "== any local replace or patched reference =="
rg -n 'oapi-sdk-go|replace|pull/211|patched|修复' --glob '!**/vendor/**'Repository: larksuite/cli Length of output: 50372 🏁 Script executed: #!/bin/bash
set -e
echo "== README_zh.md: lines 35-45 =="
nl -ba README_zh.md | sed -n '35,45p'
echo
echo "== go.mod: oapi-sdk-go entries (and any replace) =="
rg -n 'oapi-sdk-go|replace ' go.mod || true
echo
echo "== go.sum: oapi-sdk-go/v3 entries (limit) =="
rg -n 'github.com/larksuite/oapi-sdk-go/v3' go.sum || true | head -n 20
echo
echo "== any reference to pull/211 or PR number 211 related to oapi-sdk-go =="
rg -n 'oapi-sdk-go|pull/211|PR[ -]?211|211' --glob '!**/vendor/**' --glob '!**/node_modules/**' --glob '!**/dist/**' --glob '!**/build/**' || trueRepository: larksuite/cli Length of output: 50428 🏁 Script executed: #!/bin/bash
set -e
echo "== README_zh.md: lines 35-45 (with numbers) =="
awk 'NR>=35 && NR<=45 {printf "%d:%s\n", NR, $0}' README_zh.md
echo
echo "== README_zh.md: mentions of oapi-sdk-go / pull/211 =="
rg -n 'oapi-sdk-go|pull/211|SDK 修复 PR' README_zh.md || true
echo
echo "== go.mod: exact oapi-sdk-go lines and any replace blocks =="
rg -n 'oapi-sdk-go|^replace ' go.mod || true
echo
echo "== go.mod: context around first match =="
first=$(rg -n 'oapi-sdk-go' go.mod | head -n1 | cut -d: -f1)
if [ -n "$first" ]; then
start=$((first-5)); [ $start -lt 1 ] && start=1
end=$((first+5))
sed -n "${start},${end}p" go.mod
fi
echo
echo "== any oapi-sdk-go/pull/211 reference in repo (narrow) =="
rg -n 'oapi-sdk-go/pull/211|pull/211' --glob '!**/vendor/**' --glob '!**/node_modules/**' || true
echo
echo "== go.mod files in repo (to ensure we checked the right one) =="
find . -maxdepth 4 -name go.mod -printRepository: larksuite/cli Length of output: 1195 README_zh.md:把“已使用修复后 SDK 编译”改为条件性表述或补充版本到 PR 的映射
🤖 Prompt for AI Agents |
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
文档中的架构列表与下载示例和当前构建配置不一致。
这里列出的
386/arm/mips*/ppc64/s390x/riscv64以及示例二进制名lark-cli-linux-386,与当前发布模板和构建脚本不匹配(现有上下文仅显示linux/amd64、linux/arm64,且产物命名为lark-cli-<version>-linux-<arch>)。这会直接导致用户按文档下载失败。建议将“支持架构表”和wget/chmod/运行示例改成与实际 Release 产物一致,或先同步提交对应构建流水线变更。Also applies to: 28-35
🤖 Prompt for AI Agents