Skip to content
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

let goreleaser build debug file #519

Merged
merged 1 commit into from
Dec 22, 2021

Conversation

jschwinger233
Copy link
Member

@jschwinger233 jschwinger233 commented Dec 21, 2021

1. goreleaser pro 才能用 prebuilder, 所以用笨办法, build 两次
2. 因此要保证 Reproducible Builds, 按照文档, 把 {{.Data}} 改成了 {{.CommitDate}}.
3. 先在 v21.10.27 试试

经过反复尝试终于改了一版能用的..

  1. 升级到 go1.17, 坐等 1.18, 对 dwarf 有大改动
  2. release 的 tarball 里包含两个 bin: eru-core, eru-core.dbg, 生产环境还是正常用 eru-core 这个 bin, 不包含符号表和 dwarf 的纯享版.

第一个使用了这个 goreleaser 的版本: https://github.com/projecteru2/core/releases/tag/v21.10.27

@jschwinger233
Copy link
Member Author

darwin 和 linux 的纯享版 eru-core 构建方式不同, 因为 linux 可以从 eru-core.dbg 调用 strip(1) 得到, 而 darwin 版不行, 所以分别写了两个 builds.

@jschwinger233 jschwinger233 changed the title [WIP] let goreleaser build debug file [WIP] Dec 21, 2021
@jschwinger233 jschwinger233 changed the title [WIP] let goreleaser build debug file Dec 21, 2021
@jschwinger233 jschwinger233 merged commit 089fae7 into projecteru2:master Dec 22, 2021
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.

1 participant