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

有关 makefile 的几个问题 #9

Open
unknowndevQwQ opened this issue Jun 30, 2021 · 1 comment
Open

有关 makefile 的几个问题 #9

unknowndevQwQ opened this issue Jun 30, 2021 · 1 comment

Comments

@unknowndevQwQ
Copy link

  1. DATE = $(shell date -u +"%Y-%m-%dT%H:%M:%SZ")
    中的 date -u +"%Y-%m-%dT%H:%M:%SZ",这一行命令在我的 Arch 上输出 2021-06-30T13:00:00Z,更改为 date -u +"%Y-%m-%d_%T_%Z" 输出 2021-06-30_13:00:00_UTC
    我不知道没加 % 的 T 与 Z 是不是有意为之,如果是可以忽略

  2. TAG 变量是从哪来的?

  3. 现在的 makefile 不是很适合用于发行版打包,我尝试打包这个软件时发现这个 makefile 编译了打包时不需要的东西(例:其他平台的二进制,为了一次性编译多个平台二进制的 gox),希望可以调整一下 makefile,对发行版打包能更加友好一些

额外(广告嫌疑):v2ray-exporter aur

@wi1dcard
Copy link
Owner

wi1dcard commented Jul 1, 2021

Hi,感谢你的关注。

  1. TZ 是 ISO 8601 的时间字符串规范哈,可参考:https://en.wikipedia.org/wiki/ISO_8601
  2. TAG 变量是 CI 过程中自动填的,如果手动发 Release 的话,需要手动配置当前的 Tag,例如 TAG=v0.1.0 make release
  3. 对的,确实,目前的 Makefile 只是随手编辑的,没有太考虑全面。欢迎提交 PR 修改,包括 CI 也可以换成 GitHub Actions。

啊哈,多谢你发布到 Arch 上!我会将链接添加到 README 内。

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

No branches or pull requests

2 participants