feat: 引入全自动跨平台发布流与一键安装脚本#76
Merged
minorcell merged 6 commits into1024XEngineer:mainfrom Mar 28, 2026
Merged
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
minorcell
reviewed
Mar 28, 2026
Collaborator
minorcell
left a comment
There was a problem hiding this comment.
目前的方案更像是“让用户先 clone 仓库,再手动运行脚本”,但从用户预期来看,这通常不算安装,而更像源码使用。
参考 opencode / claude code 这类工具,安装体验一般会做到一条命令即可完成,例如:
curl -fsSL https://opencode.ai/install | bash
# 或者
npm i -g opencode-ai@latest
也就是说,用户 ideally 不需要先 clone 仓库,而是直接通过安装脚本或包管理器完成安装。这里建议再对安装方式和分发形态做一下设计。
Collaborator
|
@pionxe 发生冲突了,解决一下。 |
Collaborator
Author
已修改 |
phantom5099
added a commit
that referenced
this pull request
May 7, 2026
fix(tools): honor relative workdir in effective root
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
目的 / Purpose
为了让零 Go 环境的用户也能无缝体验 NeoCode 的 MVP 闭环,本项目引入了自动化跨平台构建流水线,并配套了双平台的一键安装脚本,实现真正的“开箱即用”。
Resolves #73
变更内容 / Changes
.goreleaser.yaml,配置跨平台(Linux/macOS/Windows)、多架构(amd64/arm64)的纯静态编译打包规则 (CGO_ENABLED=0)。.github/workflows/release.yml,在推送v*Tag 时自动打发布包并挂载到 GitHub Releases(已配置环境变量强制 Action 使用 Node.js 24,彻底消除了过时警告)。测试步骤 / How to Test
各项自动化流程均已在我的个人 Fork 仓库中跑通并验证:
1. Actions 运行日志
2. 生成产物预览
补充说明
首次引入 GoReleaser v2 语法,后续团队发版只需执行
git tag vX.X.X和git push origin vX.X.X即可,完全解放双手。