fix(mobile): number TestFlight builds in UTC (#1050)

A laptop in UTC+8 numbered its builds eight hours ahead of CI, so a CI upload of the same version within eight hours of a local one came out lower and would be refused.
This commit is contained in:
l0ng-ai
2026-09-30 19:32:02 +08:00
committed by GitHub
parent 0a47cada12
commit f85c0fee76
+2 -2
View File
@@ -19,13 +19,13 @@
#
# The default build number is the time — year, day of the year, hour, minute —
# so each upload is higher than the last without keeping a counter, and it
# stays under 2^31.
# stays under 2^31. In UTC, so a laptop and CI agree on the order.
set -euo pipefail
cd "$(dirname "$0")/.."
UPLOAD=1
N=$(date +%y%j%H%M)
N=$(date -u +%y%j%H%M)
while [ $# -gt 0 ]; do
case "$1" in
--no-upload) UPLOAD=0 ;;