mirror of
https://github.com/l0ng-ai/tty7.git
synced 2026-10-03 00:01:55 +00:00
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:
@@ -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 ;;
|
||||
|
||||
Reference in New Issue
Block a user