Commit Graph
25 Commits
Author SHA1 Message Date
blacktop 8372b583e4 Update provision.go 2026-04-27 15:58:44 -06:00
blacktop 6f7ebf5f4e Update provision.go 2026-04-07 19:09:58 -06:00
blacktop 429468c86b Update provision.go 2026-04-07 18:44:51 -06:00
blacktop 70b0f60880 chore(appstore): add --keep-key flag to provision generate command
When `--install` succeeds, automatically remove on-disk private key
files (.key and .p12) since the Keychain becomes the canonical store.
The `--keep-key` flag opts out of this cleanup, and clear warnings are
emitted whenever key material remains on disk.
2026-04-07 18:22:19 -06:00
blacktop c0359c0f69 fix(appstore): add platform flag to provision generate command
- Add `--platform` flag (ios, macos, tvos, catalyst) to select the
  correct certificate and profile types per platform
- Map each platform/type combination to the appropriate ProfileType
- Extract `profileTypeNeedsDevices` helper to cover all dev/adhoc
  profile types across platforms
- Auto-register the host Mac as a development device when no devices
  are found and platform is macos/catalyst
- Fix `DeviceCreateRequest` to omit `deviceClass` and `model` fields
  rather than hard-coding iPhone values
- Initialize profile relationship slices before appending so
  json.Marshal emits `[]` instead of `null`
2026-04-07 17:49:17 -06:00
blacktop 2ffaaaa40e fix(appstore): move cert/key install before profile step; fix bundle name
- Install P12 (or cert-only) into Keychain immediately after the
  certificate is saved, before provisioning profile creation. This
  ensures the codesigning identity is available even if the profile
  step fails.
- Handle the no-generated-key case: when the user supplied their own
  key, install the cert alone and still ensure WWDR G3 is present.
- Remove the now-redundant install block that previously ran after
  profile creation (only profile install remains there).
- Fix bundle ID registration: replace dots in the identifier with
  spaces for the ASC display name field, which requires alphanumeric
  characters and spaces only.
2026-04-07 17:20:14 -06:00
blacktop dbbe994d12 feat(appstore): add P12 bundling and WWDR G3 install for code signing
- Bundle cert + generated key into a password-protected .p12 file
  using go-pkcs12 (legacy 3DES for macOS Keychain compatibility)
- Import the .p12 via `security import` so cert and key are properly
  paired as an identity in the login keychain
- Auto-download and install the Apple WWDR G3 intermediate cert to
  ensure a valid codesigning trust chain
- Change `appstore cert rm` ID from a flag to a positional argument
- Fix missing `Content-Type` header on bundle ID registration request
2026-04-07 16:26:59 -06:00
blacktop e3ffae6c71 fix(appstore): bundle ID lookup and improve error handling in provisioning
- Add `GetBundleIDByIdentifier` to filter bundles by reverse-DNS
  identifier via the API query param instead of fetching by resource ID
- Auto-register missing bundle IDs during profile provisioning
- Stop deleting cert/key files on profile step failure; the cert
  already exists on Apple's servers so destroying the private key
  would make it permanently unusable — warn with recovery instructions
  instead
2026-04-07 15:35:17 -06:00
blacktop 8e6f2c554b chore: modernize to 1.26
Refactor string concatenation to use strings.Builder for improved performance in multiple files
2026-02-12 10:02:01 -07:00
blacktop 5ea41f0839 Update provision.go 2025-03-29 18:30:14 -06:00
blacktop efbf39a10d feat: add 🆕 ipsw prov cmds to create/install private key, cert and provisioning profile for XCode dev 2025-03-29 17:11:24 -06:00
kenstirandGitHub 3bbc35e2ad feat: Add ipsw appstore review-list command (#610) 2025-03-29 12:52:46 -06:00
blacktop 2c947e268f Update profile.go 2025-03-28 18:09:50 -06:00
blacktop 5ad292f20e chore: add more cert types to appstore pkg 2025-03-28 18:00:04 -06:00
blacktop f6588113bb chore: simplify the ipsw appstore JWT gen function createToken 2025-03-28 17:59:31 -06:00
blacktop 18177950d5 fix: add support for --offline profiles via ipsw appstore profile create cmd 2025-02-05 20:17:29 -07:00
blacktop 2e9a807d91 Update auth.go 2023-09-06 10:25:46 -06:00
blacktop 2a0f846cf4 feat: add --jwt support to ipsw appstore commands 2023-09-05 12:15:01 -06:00
blacktop 22bf7c41b8 feat: add ipsw appstore device reg and mod cmds to add NEW devices and change the name of existing ones 2023-08-26 22:56:37 -06:00
blacktop 11dff347f3 feat: add ipsw appstore cert add and rm commands 2023-08-26 22:25:11 -06:00
blacktop d3204f2b86 Update cap.go 2023-08-26 21:48:31 -06:00
blacktop a4369ea1db chore: working on ipsw appstore bundle cap add command to add capabilities to bundleIDs 2023-08-26 21:42:38 -06:00
blacktop 4bb378c9d6 fix: attempting to get multi-device prov profile creation to work 2023-08-26 20:01:57 -06:00
blacktop d95368637e feat: add 🆕 ipsw appstore device ls command 2023-08-26 17:47:41 -06:00
blacktop 063a82c444 feat: add 🆕 ipsw appstore profile ls and create commands to make new provisioning profiles 2023-08-26 17:36:34 -06:00