Skip to content

feat: 引入全自动跨平台发布流与一键安装脚本#76

Merged
minorcell merged 6 commits into1024XEngineer:mainfrom
pionxe:feat-auto-release
Mar 28, 2026
Merged

feat: 引入全自动跨平台发布流与一键安装脚本#76
minorcell merged 6 commits into1024XEngineer:mainfrom
pionxe:feat-auto-release

Conversation

@pionxe
Copy link
Copy Markdown
Collaborator

@pionxe pionxe commented Mar 28, 2026

目的 / Purpose

为了让零 Go 环境的用户也能无缝体验 NeoCode 的 MVP 闭环,本项目引入了自动化跨平台构建流水线,并配套了双平台的一键安装脚本,实现真正的“开箱即用”。

Resolves #73

变更内容 / Changes

  • 📦 新增构建配置: .goreleaser.yaml,配置跨平台(Linux/macOS/Windows)、多架构(amd64/arm64)的纯静态编译打包规则 (CGO_ENABLED=0)。
  • 🤖 新增 CI/CD: .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.Xgit push origin vX.X.X 即可,完全解放双手。

@codecov
Copy link
Copy Markdown

codecov Bot commented Mar 28, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

Copy link
Copy Markdown
Collaborator

@minorcell minorcell left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

目前的方案更像是“让用户先 clone 仓库,再手动运行脚本”,但从用户预期来看,这通常不算安装,而更像源码使用。
参考 opencode / claude code 这类工具,安装体验一般会做到一条命令即可完成,例如:

curl -fsSL https://opencode.ai/install | bash
# 或者
npm i -g opencode-ai@latest

也就是说,用户 ideally 不需要先 clone 仓库,而是直接通过安装脚本或包管理器完成安装。这里建议再对安装方式和分发形态做一下设计。

Comment thread install.ps1 Outdated
@minorcell
Copy link
Copy Markdown
Collaborator

@pionxe 发生冲突了,解决一下。

@pionxe
Copy link
Copy Markdown
Collaborator Author

pionxe commented Mar 28, 2026

@pionxe 发生冲突了,解决一下。

已修改

@pionxe pionxe requested a review from minorcell March 28, 2026 10:15
@minorcell minorcell merged commit 78e3df3 into 1024XEngineer:main Mar 28, 2026
2 checks passed
phantom5099 added a commit that referenced this pull request May 7, 2026
fix(tools): honor relative workdir in effective root
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Proposal] 引入全自动构建发布流与一键安装脚本,实现 NeoCode 零环境开箱即用

2 participants