Section titled “Before Your First Build”
__CAPGO_KEEP_0__ __CAPGO_KEEP_1__
설치 단계와 이 플러그인의 전체 마크다운 가이드를 포함하여 설정 명령어를 복사하세요.
Capgo Cloud Build와 함께 시작하여 몇 분 안에 첫 번째 iOS 또는 Android 네이티브 빌드를 생성하세요.
시작하기 전에 다음을 확인하세요:
bunx @capgo/cli@latest app add Build 인증 정보가 설정되어 있는지 확인하세요Section titled “Before Your First Build”
__CAPGO_KEEP_0__ __CAPGO_KEEP_1__
__CAPGO_KEEP_5__
__CAPGO_KEEP_6__
__CAPGO_KEEP_7__
bunx @capgo/cli@latest build credentials save \ --platform ios \ --certificate ./cert.p12 \ --p12-password "password" \ --provisioning-profile ./profile.mobileprovision \ --apple-key ./AuthKey.p8 \ --apple-key-id "KEY123" \ --apple-issuer-id "issuer-uuid" \ --apple-team-id "team-id"__CAPGO_KEEP_10__
bunx @capgo/cli@latest build credentials save \ --platform android \ --keystore ./release.keystore \ --keystore-alias "my-key" \ --keystore-key-password "key-pass" \ --keystore-store-password "store-pass"자세한 내용은 전체 인증 정보 안내서 자세한 내용은
로컬 빌드 인증
먼저 앱이 로컬에서 오류 없이 빌드되는지 확인하세요:
# Build your web assetsbun run build
# Sync with Capacitorbunx cap sync
# Test local build (optional but recommended)bunx cap open ios # For iOSbunx cap open android # For AndroidCapgo과 인증
Capgo의 API 키를 설정하세요 (이미 구성된 경우 제외):
bunx @capgo/cli@latest login환경 변수를 설정하세요:
export CAPGO_TOKEN=your_api_key_here첫 번째 빌드를 실행하세요
안드로이드 디버그 빌드를 시작하세요 (테스트를 빠르게):
bunx @capgo/cli@latest build com.example.app \ --platform android \ --build-mode debug빌드가 진행되는 동안 실시간 로그를 볼 수 있습니다:
✔ Creating build job...✔ Uploading project (15.2 MB)...✔ Build started
📝 Build logs:→ Installing dependencies...→ Running Gradle build...→ Signing APK...✔ Build succeeded in 3m 42s빌드 상태를 확인하세요
The CLI will automatically poll and display the build status. Once complete, you’ll see:
빌드 명령어를 실행할 때 발생하는 일
flowchart LR
A[Your Machine] -->|1. Zip Project| B[Local Temp]
B -->|2. Upload| C[Capgo Cloud]
C -->|3. Build| D[Mac Mini Silicon M4 Build Server]
D -->|4. Logs Stream| A
D -->|5. Cleanup| E[Auto Delete] node_modules 업로드빌드 실행은 다음 Mac Mini Silicon M4 기기에서 실행됩니다.:
이 빌드 이미지는 Xcode 26.2, Android Studio 2025 및 .NET 9/.NET 10 SDK 네이티브 빌드 PIPELINE을 지원합니다.
이 과정을 확인한 후 프로덕션 빌드를 생성하세요.
bunx @capgo/cli@latest build com.example.app \ --platform android \ --build-mode release안드로이드 빌드 구성 iOS.
bunx @capgo/cli@latest build com.example.app \ --platform ios \ --build-mode releaseiOS 빌드는 서명 인증서와 배포 프로파일이 필요합니다. iOS 빌드 구성.
Capgo 빌드에서만 Capgo 업로드 최소한의 파일만 업로드 to compile your native app. Your full source code never leaves your machine.
| __CAPGO_KEEP_0__ 포함 | 설명 |
|---|---|
ios/ 또는 android/ | native 플랫폼 폴더 |
package.json, package-lock.json | 의존성 매니페스트 |
capacitor.config.* | Capacitor 설정 |
resources/ | 앱 아이콘, 스플래시 화면 |
| 자연 플러그인 code | 만 ios/ 또는 android/ 각 Capacitor 플러그인의 sub폴더 |
| 제외 | 왜 |
|---|---|
node_modules/ (대부분) | code라는 네이티브 플러그인만 포함되며, JS 의존성은 포함되지 않습니다. |
src/ | code라는 웹 소스는 로컬에 유지됩니다. |
dist/, www/, build/ (루트 레벨) | __CAPGO_KEEP_0__라는 네이티브 폴더에 이미同步되어 있습니다. cap sync |
.git/ | 버전 관리 기록 |
.gradle/, .idea/, .swiftpm/ | 빌드 캐시 및 IDE 설정 |
.env비밀 | 업로드되지 않습니다. |
당신의 책임 bunx @capgo/cli@latest build:
bun run build (또는 프레임워크의 빌드 명령)bunx cap sync 웹 자산을 자연어 프로젝트로 복사package.json구축 시간은 시작부터 완료까지 측정됩니다.
실제 사용한 빌드 시간만 지불합니다. 숨겨진 비용이 없습니다.
GitHub 액션 워크플로에 추가하세요:
- uses: oven-sh/setup-bun@v2 with: bun-version: latest
- name: Build native app env: CAPGO_TOKEN: ${{ secrets.CAPGO_TOKEN }} run: | bun run build bunx cap sync bunx @capgo/cli@latest build ${{ secrets.APP_ID }} \ --platform both \ --build-mode release커밋하기 전에 로컬로 빌드 테스트하세요:
# Quick debug build for testingbun run build && bunx cap syncbunx @capgo/cli@latest build com.example.app \ --platform android \ --build-mode debug두 명령어를 실행하여 양쪽 플랫폼에 빌드합니다:
# iOS buildbunx @capgo/cli@latest build com.example.app \ --platform ios \ --build-mode release
# Android buildbunx @capgo/cli@latest build com.example.app \ --platform android \ --build-mode releaseCI/CD에서 이 명령어를 병렬로 실행하여 빌드 속도를 높일 수 있습니다.
iOS 빌드 구성