๐น ๋น๋
์ด ํ๋ฌ๊ทธ์ธ์ ์ค์น ๋จ๊ณ์ ์ ์ฒด ๋งํฌ๋ค์ด ๊ฐ์ด๋๊ฐ ํฌํจ๋ ์ค์ ์ง์์ด๋ฅผ ๋ณต์ฌํ์ธ์.
๐๏ธ Capgo iOS/Android ๋น๋๋ฅผ ๊ด๋ฆฌํ์ธ์.
๐ Init
๐ InitAlias: onboarding
npx @capgo/cli@latest build initiOS ๋น๋ ์ธ์ฆ ์ ๋ณด๋ฅผ ์ํธ ์์ฉ์ ์ผ๋ก ์ค์ ํ์ธ์ (์ธ์ฆ์ ๋ฐ ํ๋กํ์ผ์ด ์๋์ผ๋ก ์์ฑ๋ฉ๋๋ค). macOS์์ App Store Connect API ํค๋ฅผ ์์ฑํ๋ ๋ฐ ๋์์ด ๋ฉ๋๋ค.
๐น Request
๐น Requestnpx @capgo/cli@latest build requestCapgo Cloud์์ ๋ค์ดํฐ๋ธ ๋น๋๋ฅผ ์์ฒญํ์ธ์.
์ด ๋ช
๋ น์ ํ๋ก์ ํธ ๋๋ ํ ๋ฆฌ๋ฅผ ์์ถํ๊ณ Capgo์ ์
๋ก๋ํ์ฌ ๋น๋ํฉ๋๋ค.
๋น๋๋ ์ง์ ์ฑ ์คํ ์ด๋ก ์ ์ก๋ฉ๋๋ค.
๐ ๋ณด์: Capgo ์๋ฒ์ ์ธ์ฆ ์ ๋ณด๋ฅผ ์ ์ฅํ์ง ์์ต๋๋ค. ๋น๋ ์๋ฃ ํ ์๋์ผ๋ก ์ญ์ ๋ฉ๋๋ค.
๋น๋ ์ถ๋ ฅ์ ์ ํ์ ์ผ๋ก ์๊ฐ ์ ํ๋ ๋ค์ด๋ก๋ ๋งํฌ๋ก ์
๋ก๋ํ ์ ์์ต๋๋ค.
๐ ํ์ ์กฐ๊ฑด: ๋จผ์ ์ธ์ฆ ์ ๋ณด๋ฅผ ์ ์ฅํ์ธ์:
npx @capgo/cli build credentials save --appId <app-id> --platform <ios|android>
์์:
npx @capgo/cli@latest build request com.example.app --platform ios --path .์ต์ :
| Param | Type | ์ค๋ช |
|---|---|---|
| โpath | string | ํ๋ก์ ํธ ๋น๋ ๋๋ ํ ๋ฆฌ์ ๊ฒฝ๋ก (๊ธฐ๋ณธ๊ฐ: ํ์ฌ ๋๋ ํ ๋ฆฌ) |
| โplatform | string | ๋น๋ ๋์ ํ๋ซํผ: ios ๋๋ android (ํ์) |
| โbuild-mode | string | ๋น๋ ๋ชจ๋: ๋๋ฒ๊ทธ ๋๋ ๋ฆด๋ฆฌ์ฆ (๊ธฐ๋ณธ: ๋ฆด๋ฆฌ์ฆ) |
| __CAPGO_KEEP_0__ | string | iOS: Base64๋ก ์ธ์ฝ๋ฉ๋ .p12 ์ธ์ฆ์ |
| __CAPGO_KEEP_0__ | string | iOS: ์ธ์ฆ์ ๋น๋ฐ๋ฒํธ (์ธ์ฆ์์ ๋น๋ฐ๋ฒํธ๊ฐ ์์ผ๋ฉด ์ ํ ์ฌํญ) |
| iOS: ์ฑ ์คํ ์ด ์ฐ๊ฒฐ __CAPGO_KEEP_0__ ํค ๋์ฒด | string | iOS: Apple ID email for app-specific password uploads (alternative to App Store Connect API key) |
| iOS: ์ฑ ์คํ ์ด ์ฐ๊ฒฐ ์ฑ ์์ด๋ (ํ์: โapple-id์ โapple-app-specific-password์ ํจ๊ป) | string | iOS: ์ฑ ์คํ ์ด ์ฐ๊ฒฐ ์ฑ ํค ์์ด๋ |
| __CAPGO_KEEP_0__ | string | __CAPGO_KEEP_0__ |
| __CAPGO_KEEP_0__ | string | iOS: ์ ํ ์ฑ ์คํ ์ด ์ฐ๊ฒฐ(App Store Connect) API ํค ID(Key ID) |
| โapple-issuer-id | string | iOS: ์ ํ ์ฑ ์คํ ์ด ์ปค๋ฅํธ ๋ฐ๊ธ์ ID |
| โ์ฌ์ฉ์ ์ธ์ฆ์ ์ฝํ ์ธ โ | string | iOS: Base64-์ธ์ฝ๋ฉ App Store Connect API ํค (.p8) |
| ์ ํ ์คํ ์ด ์ฐ๊ฒฐ ํ ID | string | iOS: ์ ํ ์คํ ์ด ์ปค๋ฅํธ ํ ID |
| iOS ์คํค๋ง | string | iOS: Xcode scheme์ผ๋ก ๋น๋ (๊ธฐ๋ณธ: App) |
| iOS ๋์ | string | iOS: Xcode ๋์์ผ๋ก ๋น๋ ์ค์ ์ฝ๊ธฐ (๊ธฐ๋ณธ๊ฐ: ์คํค๋ง์ ๋์ผ) |
| iOS ๋ฐฐํฌ | string | iOS: ๋ฐฐํฌ ๋ชจ๋ |
| โios-provisioning-profile | string | iOS: Provisioning profile ๊ฒฝ๋ก ๋๋ bundleId=path mapping (๋ฐ๋ณต ๊ฐ๋ฅ) |
| โandroid-keystore-file | string | Android: Base64-encoded ํค ์คํ ์ด ํ์ผ |
| โkeystore-key-alias | string | Android: ํค ์คํ ์ด ํค ๋ณ์นญ |
| โkeystore-key-password | string | Android: ํค ์คํ ์ด ํค ๋น๋ฐ๋ฒํธ |
| โkeystore-store-password | string | Android: ํค ์คํ ์ด ์ ์ฅ์ ๋น๋ฐ๋ฒํธ |
| โplay-config-json | string | ์๋๋ก์ด๋: Base64-encoded Google Play ์๋น์ค ๊ณ์ JSON |
| โ์๋๋ก์ด๋ ํ๋๋ฒ | string | ์๋๋ก์ด๋: ์ ํ ํ๋๋ฒ๋ฅผ ๋น๋ํ๊ธฐ ์ํ (์: ํ๋ก๋์ ). ํ๋ก์ ํธ๊ฐ ์ฌ๋ฌ ํ๋๋ฒ๋ฅผ ๊ฐ์ง๊ณ ์๋ค๋ฉด ํ์์ ๋๋ค. |
| โํ๋ ์ด์คํ ์ด ์ ๋ก๋ ์๋ต | boolean | ์ด ๋น๋์ ๋ํ ํ๋ ์ด ์คํ ์ด ์ ๋ก๋๋ฅผ ์๋ตํฉ๋๋ค (์ ์ฅ๋ ํ๋ ์ด ๊ตฌ์ฑ null๋ก ์ค์ ). โoutput-upload์ด ํ์ํฉ๋๋ค. |
| โoutput-upload | boolean | ์ด ๋น๋์ ๋ํ ์ถ๋ ฅ ์ ๋ก๋ ๋์์ ์ค๋ฒ๋ผ์ด๋ํฉ๋๋ค (ํ์ฑํ). ์ฐ์ ์์: CLI > ํ๊ฒฝ > ์ ์ฅ๋ ์๊ฒฉ์ฆ๋ช |
| โno-output-upload | boolean | ์ด ๋น๋์ ๋ํ ์ถ๋ ฅ ์ ๋ก๋ ๋์์ ์ค๋ฒ๋ผ์ด๋ํฉ๋๋ค (๋นํ์ฑํ). ์ฐ์ ์์: CLI > ํ๊ฒฝ > ์ ์ฅ๋ ์๊ฒฉ์ฆ๋ช |
| โ์ถ๋ ฅ ๋ณด์กด | string | ์ด ๋น๋์ ๋ํ ์ถ๋ ฅ ๋งํฌ TTL์ ์ค๋ฒ๋ผ์ด๋ํฉ๋๋ค (1์๊ฐ์์ 7์ผ). ์์: 1์๊ฐ, 6์๊ฐ, 2์ผ. ์ฐ์ ์์: CLI > ํ๊ฒฝ > ์ ์ฅ๋ ์๊ฒฉ์ฆ๋ช |
| โ๋น๋ ๋ฒํธ ์ ๋ฐ์ดํธ๋ฅผ ์๋ต | boolean | ์๋ ๋น๋ ๋ฒํธ/๋ฒ์ code ์ฆ๊ฐ๋ฅผ ์๋ตํฉ๋๋ค. ํ๋ก์ ํธ ํ์ผ์ ์ด๋ฏธ ์๋ ๋ฒ์ ์ ์ฌ์ฉํฉ๋๋ค. |
| โno-skip-build-number-bump | boolean | ์ด ๋น๋์๋ง ์๋ ๋น๋ ๋ฒํธ ์ฆ๊ฐ๋ฅผ ๋ค์ ํ์ฑํํ๊ธฐ ์ํด ์ ์ฅ๋ ์๊ฒฉ์ฆ๋ช ์ ์ฌํ์ฉํฉ๋๋ค. |
| -a, | string | API ๊ณ์ ์ ์ฐ๊ฒฐํ๊ธฐ ์ํ ํค |
| โsupa-host | string | Custom Supabase host URL (for self-hosting or Capgo development) |
| โsupa-anon | string | ์์ฒด ํธ์คํ ์ ์ํด ์ฌ์ฉํ๋ ์ปค์คํ Supabase anon ํค |
| โverbose | boolean | ์ธ๋ถ ๋ก๊น ๊ณผ ํจ๊ป ์์ธํ ์ถ๋ ฅ์ ํ์ฑํํฉ๋๋ค. |
๐น Credentials
๐น ์ธ์ฆ ์ ๋ณดnpx @capgo/cli@latest build credentials์ปดํจํฐ์ ์ ์ฅ๋ ๋น๋ ์ธ์ฆ ์ ๋ณด๋ฅผ ๊ด๋ฆฌํ์ธ์. ๐ ๋ณด์:
- ์ธ์ฆ ์ ๋ณด๊ฐ ~/.capgo-credentials/credentials.json (์ ์ญ) ๋๋ .capgo-credentials.json (์ง์ญ) ์ ์ ์ฅ๋ฉ๋๋ค.
- ๋น๋ ์ Capgo๋ก ์ ์ก๋์ง๋ง ์๊ตฌ์ ์ผ๋ก ์ ์ฅ๋์ง ์์ต๋๋ค.
- Capgo์์ ์ฆ์ ์ญ์
- ๋น๋ ์ถ๋ ฅ๋ฌผ์ ์ต์ ์ผ๋ก ์๊ฐ ์ ํ๋ ๋ค์ด๋ก๋ ๋งํฌ๋ก ์ ๋ก๋ํ ์ ์์ต๋๋ค ๐ ๋ฌธ์: https://capgo.app/docs/builder/ios/ https://__CAPGO_KEEP_0__.app/docs/builder/ios/ https://capgo.app/docs/builder/android/
https://__CAPGO_KEEP_0__.app/docs/builder/android/
__CAPGO_KEEP_0__ CI/CD๋ฅผ ํตํด ๊ณ์ ์งํํ์ธ์.__CAPGO_KEEP_0__๋ฅผ ์ฌ์ฉ ์ค์ด๋ผ๋ฉด __CAPGO_KEEP_0__ __CAPGO_KEEP_0__์ ์ฐ๊ฒฐํ์ธ์. Capgo CI/CD์ ์ ํ ์ํฌํ๋ก์ฐ์์ Capgo CI/CD๋ฅผ ์ฐ๊ฒฐํ์ธ์. Capgo Native Builds์ ์ ํ ์ํฌํ๋ก์ฐ์์ Capgo Native Builds๋ฅผ ์ฐ๊ฒฐํ์ธ์. Capgo Integrations์ ์ ํ ์ํฌํ๋ก์ฐ์์ Capgo Integrations๋ฅผ ์ฐ๊ฒฐํ์ธ์. for the product workflow in Capgo Native Builds, Capgo Integrations Capgo CI/CD๋ฅผ ํตํด ๊ณ์ ์งํํ์ธ์. __CAPGO_KEEP_0__๋ฅผ ์ฌ์ฉ ์ค์ด๋ผ๋ฉด __CAPGO_KEEP_0__ CI/CD์ ์ ํ ์ํฌํ๋ก์ฐ์์ __CAPGO_KEEP_0__ CI/CD๋ฅผ ์ฐ๊ฒฐํ์ธ์. GitHub ์ก์ ํตํฉ GitHub ์ก์ ํตํฉ ๊ตฌํ ์ธ๋ถ ์ฌํญ์ ์ํด.