diff --git a/src/content/docs/docs/cli/cloud-build/getting-started.mdx b/src/content/docs/docs/cli/cloud-build/getting-started.mdx index a33700097..cda584f66 100644 --- a/src/content/docs/docs/cli/cloud-build/getting-started.mdx +++ b/src/content/docs/docs/cli/cloud-build/getting-started.mdx @@ -5,7 +5,7 @@ sidebar: order: 1 --- -import { Steps, Card, CardGrid } from '@astrojs/starlight/components'; +import { Steps, Card, CardGrid, Aside } from '@astrojs/starlight/components'; Get started with Capgo Cloud Build and create your first iOS or Android native build in minutes. @@ -169,19 +169,50 @@ iOS builds require signing certificates and provisioning profiles. See [iOS Buil ## What Gets Built -**Important:** Capgo Cloud Build only builds the **native parts** of your app (iOS and Android native code). +Capgo Build only uploads the **minimum files needed** to compile your native app. Your full source code never leaves your machine. -You are responsible for: -- Building your web assets (`npm run build`) -- Running `npx cap sync` before the build -- Ensuring all dependencies are in `package.json` +### What Gets Uploaded + +| Included | Description | +|----------|-------------| +| `ios/` or `android/` | The native platform folder you're building | +| `package.json`, `package-lock.json` | Dependency manifest | +| `capacitor.config.*` | Capacitor configuration | +| `resources/` | App icons, splash screens | +| Native plugin code | Only the `ios/` or `android/` subfolder of each Capacitor plugin | + +### What's NOT Uploaded + +| Excluded | Why | +|----------|-----| +| `node_modules/` (most of it) | Only native plugin code is included, not JS dependencies | +| `src/` | Your web source code stays local | +| `dist/`, `www/`, `build/` (root level) | Already synced into the native folder via `cap sync` | +| `.git/` | Version control history | +| `.gradle/`, `.idea/`, `.swiftpm/` | Build caches and IDE settings | +| `.env`, secrets | Never uploaded | + + + +### Your Responsibilities + +Before running `npx @capgo/cli build`: + +1. **Build your web assets** - Run `npm run build` (or your framework's build command) +2. **Sync to native** - Run `npx cap sync` to copy web assets into the native project +3. **Commit dependencies** - Ensure all native plugins are in `package.json` + +### What Capgo Build Handles -We handle: - Native iOS compilation (Xcode, Fastlane) - Native Android compilation (Gradle) -- Code signing +- Code signing with your credentials - App store submission (if configured) +
+ ## Build Time & Costs Build time is measured from start to completion: @@ -223,14 +254,22 @@ npx @capgo/cli@latest build com.example.app \ ### Multi-Platform Builds -Build for both platforms simultaneously: +Build for both platforms by running two commands: ```bash +# iOS build npx @capgo/cli@latest build com.example.app \ - --platform both \ + --platform ios \ + --build-mode release + +# Android build +npx @capgo/cli@latest build com.example.app \ + --platform android \ --build-mode release ``` +In CI/CD, you can run these in parallel jobs for faster builds. + ## Next Steps Now that you've created your first build: diff --git a/src/content/docs/docs/cli/cloud-build/index.mdx b/src/content/docs/docs/cli/cloud-build/index.mdx new file mode 100644 index 000000000..7a7c06515 --- /dev/null +++ b/src/content/docs/docs/cli/cloud-build/index.mdx @@ -0,0 +1,127 @@ +--- +title: Introduction to Capgo Build +description: Build iOS and Android apps in the cloud without local setup. No Mac required for iOS builds. +sidebar: + order: 0 + label: Introduction +--- + +import { Card, CardGrid, Aside, LinkCard } from '@astrojs/starlight/components'; + +Capgo Build is a cloud-based native app compilation service for Capacitor apps. It lets you build iOS and Android apps without maintaining local development environments - no Xcode, no Android Studio, no Mac hardware required. + +## What Capgo Build Does + +Capgo Build compiles the **native parts** of your Capacitor app in the cloud: + +- **iOS builds** run on dedicated Apple Silicon (Mac Mini M4) machines +- **Android builds** run in isolated Docker containers +- **Automatic code signing** handles certificates, provisioning profiles, and keystores +- **Direct store submission** uploads signed apps to App Store Connect and Google Play + +You trigger builds with a single CLI command that works from anywhere - your local machine, GitHub Actions, GitLab CI, or any CI/CD pipeline. + +## When to Use Capgo Build vs Live Updates + +Capgo offers two complementary features for updating your app. Here's when to use each: + +| Scenario | Live Updates | Capgo Build | +|----------|:------------:|:-----------:| +| Bug fix in JavaScript/TypeScript code | ✓ | | +| UI changes (HTML, CSS, images) | ✓ | | +| Updating web dependencies | ✓ | | +| Adding or removing a Capacitor plugin | | ✓ | +| Updating a native SDK version | | ✓ | +| Changing native permissions (Info.plist, AndroidManifest) | | ✓ | +| Updating Capacitor version | | ✓ | +| Modifying native code (Swift, Kotlin, Java) | | ✓ | +| Changing app icon or splash screen | | ✓ | +| First app store submission | | ✓ | + + + +## Why Use Capgo Build + +