버전 불일치 문제
This commit is contained in:
@@ -161,7 +161,7 @@ const PlatformCard: React.FC<{
|
||||
const configs = {
|
||||
mac: { label: 'macOS (Apple Silicon · Intel)', icon: '🍎', ext: '.dmg', isLink: false },
|
||||
windows: { label: 'Windows (64-bit)', icon: '🪟', ext: '.exe', isLink: false },
|
||||
android: { label: 'Android (패드 · 폰)', icon: '🤖', ext: '.apk', isLink: false },
|
||||
android: { label: 'Android (패드 · 폰 · 별도 버전)', icon: '🤖', ext: '.apk', isLink: false },
|
||||
} as const;
|
||||
const { label, icon, ext } = configs[platform];
|
||||
|
||||
@@ -435,6 +435,14 @@ const DesktopTab: React.FC<{ canBuildDesktop: boolean }> = ({ canBuildDesktop })
|
||||
|
||||
const hasAny = info?.mac?.available || info?.windows?.available || mobileInfo?.available;
|
||||
|
||||
const desktopVersionMismatch = Boolean(
|
||||
info?.version
|
||||
&& (
|
||||
(info.mac?.available && info.mac.version && info.mac.version !== info.version)
|
||||
|| (info.windows?.available && info.windows.version && info.windows.version !== info.version)
|
||||
),
|
||||
);
|
||||
|
||||
if (loading) return <p className="app-download-muted">PC 프로그램 정보 불러오는 중…</p>;
|
||||
if (error) return <p className="app-download-error">{error}</p>;
|
||||
|
||||
@@ -468,6 +476,12 @@ const DesktopTab: React.FC<{ canBuildDesktop: boolean }> = ({ canBuildDesktop })
|
||||
)}
|
||||
</div>
|
||||
|
||||
{desktopVersionMismatch && (
|
||||
<p className="app-download-error" style={{ marginBottom: 8 }}>
|
||||
macOS·Windows 설치 파일 버전이 최신 빌드(v{info?.version})와 다릅니다. 「앱 빌드」를 다시 실행하세요.
|
||||
</p>
|
||||
)}
|
||||
|
||||
{showBuildProgress && (
|
||||
<DesktopBuildProgressPanel
|
||||
status={buildStatus}
|
||||
|
||||
Reference in New Issue
Block a user