mirror of
https://github.com/rudrankriyam/App-Store-Connect-CLI.git
synced 2026-04-25 15:45:48 +03:00
[PR #392] [MERGED] Add --pkg flag to builds upload for macOS apps #494
Labels
No labels
bug
bug
documentation
enhancement
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/App-Store-Connect-CLI#494
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/rudrankriyam/App-Store-Connect-CLI/pull/392
Author: @rudrankriyam
Created: 2/1/2026
Status: ✅ Merged
Merged: 2/1/2026
Merged by: @rudrankriyam
Base:
main← Head:feature/macos-pkg-upload📝 Commits (1)
5b21e7dAdd --pkg flag to builds upload for macOS apps📊 Changes
3 files changed (+91 additions, -25 deletions)
View changed files
📝
internal/asc/client_types.go(+1 -0)📝
internal/cli/builds/builds_commands.go(+83 -23)📝
internal/cli/cmdtest/commands_test.go(+7 -2)📄 Description
Summary
--pkgflag toasc builds uploadcommand for uploading macOS .pkg installer files--pkg, the platform is automatically set toMAC_OS--ipaand--pkgflags are mutually exclusive--versionand--build-numberflags for PKG uploads (IPA files can auto-extract these from Info.plist)Changes
internal/asc/client_types.go: AddUTIPKGconstant for macOS installer package UTI (com.apple.installer-package-archive)internal/cli/builds/builds_commands.go: Add--pkgflag with validation logic and platform auto-detectioninternal/cli/cmdtest/commands_test.go: Add test cases for new validation behaviorUsage Examples
Test plan
go build .compiles successfullygo test ./...passes all tests--ipa or --pkg is requiredwhen neither is provided--ipa and --pkg are mutually exclusivewhen both are provided--pkg requires --platform MAC_OSwhen conflicting platform is specified--version and --build-number required for PKG uploadswhen missing🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.