From da4acdf6513e1b4219e6b3724382bbfc3c0314d0 Mon Sep 17 00:00:00 2001 From: Denis Dupeyron Date: Thu, 20 Nov 2025 13:32:36 -0700 Subject: [PATCH] Use commit date instead of build date --- Dockerfile.android | 2 +- README.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile.android b/Dockerfile.android index 79c0149..c2a41b8 100644 --- a/Dockerfile.android +++ b/Dockerfile.android @@ -49,7 +49,7 @@ cd /workspace/src/android E_UID=\$(stat -c '%u' /source) E_GID=\$(stat -c '%g' /source) BRANCH=\$(git rev-parse --abbrev-ref HEAD) -DATE=\$(date +%Y%m%d%H%M%S) +DATE=\$(TZ=UTC0 git show --quiet --date='format-local:%Y%m%d%H%M%S' --format="%cd") SHORT_SHA=\$(git rev-parse --short HEAD) ID=\${DATE}-\${BRANCH}-\${SHORT_SHA} T=\${1} diff --git a/README.md b/README.md index 20b8e13..00418d9 100755 --- a/README.md +++ b/README.md @@ -17,7 +17,7 @@ Example: This requires Docker. Output artifacts, `.apk` or `.AppImage`, and logs, will end up in this directory. Their names contain -target, build date/time, branch, and short commit SHA for easy reference. +target, commit date/time, branch, and short commit SHA for easy reference. No hand-holding (yet), so if you typo stuff or wrongly capitalize it, things will break.