feat: reproducible building

This commit is contained in:
hellodword 2023-05-30 17:14:58 +08:00 committed by GitHub
parent c0ab06e961
commit 08a982ee91
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -71,7 +71,7 @@ platform_to_env() {
}
make_ldflags() {
local ldflags="-s -w -X 'main.appDate=$(date -u '+%F %T')'"
local ldflags="-buildid= -s -w -X 'main.appDate=$(date -u '+%F %T')'"
if [ -n "$HY_APP_VERSION" ]; then
ldflags="$ldflags -X 'main.appVersion=$HY_APP_VERSION'"
else