fix: encode Xcode archive creation date

This commit is contained in:
冰朔 2026-08-19 04:59:22 +08:00
commit 7619036c6f
2 changed files with 13 additions and 1 deletions

View file

@ -3,6 +3,7 @@ import { readFileSync } from 'node:fs'
import test from 'node:test'
import {
formatPlistDate,
materializeUpdaterPrivateKey,
validateCredentialEnvironment,
validateReleaseInput,
@ -39,6 +40,10 @@ const readyInput = () => ({
restartMessage: 'Restart manually',
})
test('Xcode archive creation uses the plist date format accepted by PlistBuddy', () => {
assert.equal(formatPlistDate(new Date('2026-08-19T01:02:03Z')), 'Wed Aug 19 01:02:03 2026')
})
test('release pipeline refuses an unprovisioned or upstream-owned trust document', () => {
const unprovisioned = readyTrust()
unprovisioned.state = 'UNPROVISIONED_FAIL_CLOSED'