Skip to content
Merged
Changes from all 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
22 changes: 21 additions & 1 deletion static/app/views/preprod/components/installModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import {openModal} from 'sentry/actionCreators/modal';
import LoadingIndicator from 'sentry/components/loadingIndicator';
import {QuietZoneQRCode} from 'sentry/components/quietZoneQRCode';
import {IconClose} from 'sentry/icons/iconClose';
import {t, tn} from 'sentry/locale';
import {t, tct, tn} from 'sentry/locale';
import {space} from 'sentry/styles/space';
import {MarkedText} from 'sentry/utils/marked/markedText';
import {useApiQuery} from 'sentry/utils/queryClient';
Expand Down Expand Up @@ -79,6 +79,26 @@ function InstallModal({projectId, artifactId, closeModal}: InstallModalProps) {
);
}

if (installDetails.codesigning_type === 'appstore') {
return (
<Flex direction="column" align="center" gap="xl">
{header}
<CodeSignatureInfo>
<Text>{t('This app cannot be installed')}</Text>
<br />
<Text size="sm" variant="muted">
{tct(
'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.',
{
profileName: <strong>{installDetails.profile_name}</strong>,
}
)}
</Text>
</CodeSignatureInfo>
</Flex>
);
}

if (!installDetails.install_url) {
if (!installDetails.is_code_signature_valid) {
let errors = null;
Expand Down
Loading