Skip to content

Commit 646d534

Browse files
authored
feat: Add support for detecting app store profile to app install modal (#103207)
1 parent bd71870 commit 646d534

File tree

1 file changed

+21
-1
lines changed

1 file changed

+21
-1
lines changed

static/app/views/preprod/components/installModal.tsx

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import {openModal} from 'sentry/actionCreators/modal';
1010
import LoadingIndicator from 'sentry/components/loadingIndicator';
1111
import {QuietZoneQRCode} from 'sentry/components/quietZoneQRCode';
1212
import {IconClose} from 'sentry/icons/iconClose';
13-
import {t, tn} from 'sentry/locale';
13+
import {t, tct, tn} from 'sentry/locale';
1414
import {space} from 'sentry/styles/space';
1515
import {MarkedText} from 'sentry/utils/marked/markedText';
1616
import {useApiQuery} from 'sentry/utils/queryClient';
@@ -79,6 +79,26 @@ function InstallModal({projectId, artifactId, closeModal}: InstallModalProps) {
7979
);
8080
}
8181

82+
if (installDetails.codesigning_type === 'appstore') {
83+
return (
84+
<Flex direction="column" align="center" gap="xl">
85+
{header}
86+
<CodeSignatureInfo>
87+
<Text>{t('This app cannot be installed')}</Text>
88+
<br />
89+
<Text size="sm" variant="muted">
90+
{tct(
91+
'App was signed for the App Store using the [profileName] profile and cannot be installed directly. Re-upload with an enterprise, ad-hoc, or development proifle to install this app.',
92+
{
93+
profileName: <strong>{installDetails.profile_name}</strong>,
94+
}
95+
)}
96+
</Text>
97+
</CodeSignatureInfo>
98+
</Flex>
99+
);
100+
}
101+
82102
if (!installDetails.install_url) {
83103
if (!installDetails.is_code_signature_valid) {
84104
let errors = null;

0 commit comments

Comments
 (0)