Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: building for MacAppStore #1173

Merged
merged 3 commits into from
Sep 2, 2023
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/quickpicks/build/ios.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export async function selectiOSProvisioningProfile (certificate: IosCert, target
let deployment: IosProvisioningType = 'development';
if (target === 'dist-adhoc') {
deployment = 'distribution';
} else if (target === 'dist-appstore') {
} else if (target === 'dist-appstore' || target === 'dist-macappstore') {
deployment = 'appstore';
}
const profiles = ExtensionContainer.environment.iOSProvisioningProfiles(deployment, certificate, appId);
Expand Down
2 changes: 1 addition & 1 deletion src/tasks/helpers/base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ export abstract class TaskHelper {

const options = [ defaultLabel, 'Browse' ];

if ((definition as AppPackageTaskTitaniumBuildBase).target === 'dist-appstore') {
if ((definition as AppPackageTaskTitaniumBuildBase).target === 'dist-appstore' || (definition as AppPackageTaskTitaniumBuildBase).target === 'dist-macappstore') {
options.push('Output Into Xcode');
}

Expand Down
4 changes: 3 additions & 1 deletion src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,8 @@ export function nameForTarget (target: Target): PrettyTarget {
return 'Ad-Hoc';
case 'dist-appstore':
return 'App Store';
case 'dist-macappstore':
return 'macOS App Store';
case 'dist-playstore':
return 'Play Store';
default:
Expand Down Expand Up @@ -121,7 +123,7 @@ export function targetsForPlatform (platformName: Platform): Target[] {
case 'android':
return [ 'emulator', 'device', 'dist-playstore' ];
case 'ios':
return [ 'simulator', 'device', 'dist-adhoc', 'dist-appstore' ];
return [ 'simulator', 'device', 'dist-adhoc', 'dist-appstore', 'dist-macappstore' ];
default:
return [];
}
Expand Down