메인 콘텐츠로 바로 가기
튜토리얼

Capacitor 앱을 Capacitor-업데이터를 사용하여 무중단으로 업데이트하세요.

Capacitor 아이오닉 커뮤니티 안녕하세요, 오늘은 Capacitor-업데이터를 앱에 설정하는 방법에 대해 알려드리겠습니다. 무중단 릴리즈를 위해.

마틴 도나디유

마틴 도나디유

콘텐츠 마케터

Capacitor 앱을 Capacitor-업데이터를 사용하여 무중단으로 업데이트하세요.

What is Capacitor-updater?

Capacitor-updater, a technology that helps in the delivery of app updates and improvements to the end users instantly.

이것은 특히 App Store 리뷰를 거치지 않고 즉시 крит적 버그 수정을 수행하고 싶을 때 특히 좋습니다.

사이드 로딩 업데이트를 즉시 사용할 수 있는 “웹-처럼”의 민첩성을 생각해 보세요.

또한, 새로운 업데이트가 앱을 충돌시키면 롤백을 제공합니다.

Capgo-업데이터는 어떻게 작동합니까?

Capgo keeps your app’s JavaScript bundle in sync with the Capgo server, and every time the user opens the app, it checks with the Capgo server if a new update is available to the bundle. And of course, it comes with tons of awesome configurations which can help you fine-tune your user’s experience.

I use Capgo in all my projects I build. That allows me to put less time in the App Store review process.

Capgo-업데이터에 대한 더 많은 정보는 여기.

Understanding Semantic Versioning with Capgo

Capgo uses semantic versioning (semver) to determine when and how updates should be applied to your app. This ensures that your users only receive compatible updates and prevents breaking changes from being automatically deployed.

__CAPGO_KEEP_0__ 버전 형식은 MAJOR.MINOR.PATCH:

  • MAJOR: 네이티브 앱 스토어 배포가 필요한 변경 사항
  • MINOR: 뒤로 호환되는 새로운 기능
  • PATCH: 뒤로 호환되는 버그 수정

예를 들어, 앱이 버전 1.0.0 에 있고, 1.0.1 로 업데이트하고 싶다면 Capgo는 자동으로 이 업데이트를 적용합니다. 그러나 1.0.0 에서 2.0.0 로 업데이트하고 싶다면, 이는 네이티브 앱 스토어 배포가 필요합니다. 이는 뒤로 호환되지 않는 변경 사항을 나타냅니다.

Capgo’s 채널 설정을 통해 업데이트의 유형을 자동으로 적용할 수 있습니다.

  • 주요 전략: 모든 업데이트를 허용합니다(주의)
  • : 주요 및 패치 업데이트만 허용합니다패치 전략
  • : 패치 업데이트만 허용합니다메타데이터 전략
  • : 최소 버전 요구 사항이 충족될 때까지 업데이트를 허용합니다__CAPGO_KEEP_0__’s 업데이트 로직을 테스트하려면 Semver Tester tool을 사용하세요.

You can test how different version combinations work with Capgo’s update logic using our __CAPGO_KEEP_0__’s 채널 설정을 통해 업데이트의 유형을 자동으로 적용할 수 있습니다.주요 전략

어떤 제한이 있나요?

__CAPGO_KEEP_0__은 좋은 소리가 될 수 있지만, 몇 가지 것을 기억해야 할 것이 있습니다. 첫 번째 것은 OTA 업데이트 Note: I've kept the placeholder __CAPGO_KEEP_0__ as it is, and translated the rest of the text to Korean. 웹 번들만 지원합니다.. You may think that this isn’t really a big limitation because, in Capacitor JS, we write almost all code in JS CSS and HTML. While this may be true, there still are native modules that we install to our app. If a module changes your android or iOS directories, you can’t use OTA to update your app. That’s because these directories’ contents are used to compile Native binaries, which OTA can’t update. Even native app cannot update this part.

CI/CD를 설정하여 이 부분을 처리할 수 있습니다. CI/CD 설정에 대한 튜토리얼을 만들었습니다. iOS를 위한 Capgo.

자동 Capgo 설정

Capgo 회원가입을 시작하세요. 첫 번째 버전을 업로드 하기 위해 API 키를 받으세요. 시작하기 위해 signing up for a Capgo account.

로그인한 후 Capgo 에 접속하면 온보딩 페이지가 나타납니다.

등록 페이지

애플리케이션을 첫 번째로 추가하려면 onboard 페이지의 단계를 따르십시오.

CLI의 지침을 따르세요.

Capacitor의 명령을 사용하여 루트 디렉토리에 Capacitor 앱을 실행하세요.

npx @capgo/cli@latest init CLI는 Capgo을 Capacitor 앱에 설치하는 데 도와주며, Capgo과 함께 앱을 설정하는 과정을 안내합니다.

__CAPGO_KEEP_0__를 수동으로 구성하려면 아래의 단계를 따르세요.

Capgo 수동 구성

__CAPGO_KEEP_0__ 설치

code가 앱에 추가되면 다음과 같은 결과가 나와야 합니다.

npm i @capgo/capacitor-updater && npx cap sync Capacitor을 Capacitor 앱에 설치하세요.

code을 앱에 추가하여 JS 번들을 건강한 것으로 알리세요 (이 작업을 하지 않으면 네이티브 플러그인은 이전 버전으로 롤백됩니다).

import { CapacitorUpdater } from '@capgo/capacitor-updater'

CapacitorUpdater.notifyAppReady()

__CAPGO_KEEP_0__이 성공적으로 설치되었다는 것을 네이티브 플러그인에게 알려줍니다.

그 다음에 npm run build && npx cap copy 앱을 업데이트하세요.

로그인하기 Capgo CLOUD

먼저 다음을 사용하여 all apikey CLI 계정에 있는 apikey를 사용하여 CLI 로그인합니다.

npx @capgo/cli@latest login YOU_KEY

첫 번째 앱을 추가하세요

Capgo Cloud에 CLI을 사용하여 첫 번째 앱을 만드는 것을 시작하세요.

npx @capgo/cli@latest app add

Capacitor config 파일에 정의된 모든 변수를 사용하여 앱을 생성하는 명령어입니다.

첫 번째 버전 업로드

code을 빌드하고 Capgo에 업로드하는 명령어를 실행하세요. npx @capgo/cli@latest bundle upload

기본적으로 버전 이름은 파일에 있는 이름입니다. package.json 체크인

체크인 Capgo 만들어졌으면.

__CAPGO_KEEP_0__에서 테스트 할 수 있습니다. __CAPGO_KEEP_0__의 모바일 샌드박스 앱.

채널 기본 설정

Capgo로 업데이트를 받을 수 있도록 Capgo 채널을 설정해야 합니다. default to let apps receive updates from Capgo.

npx @capgo/cli@latest channel set production -s default

애플리케이션을 __CAPGO_KEEP_0__에서 Live Update를 받으려면, 장치나 에뮬레이터에서 애플리케이션을 실행해야 합니다. 이 작업을 쉽게 하려면, 장치나 에뮬레이터에 연결된 컴퓨터에 연결된 장치나 에뮬레이터에서 애플리케이션을 실행하는 명령어를 사용하세요.

앱을 열고, 앱을 백그라운드에 보내고, 앱을 다시 열면, 로그에 업데이트가 된 앱이 실행된 것을 확인할 수 있습니다.

npx cap run [ios | android]

축하합니다! 🎉 __CAPGO_KEEP_0__에서 Live Update를 성공적으로 배포했습니다. Live Update는 __CAPGO_KEEP_0__에서 할 수 있는 것 중 하나입니다. 더 많은 것을 배우려면, Live Updates 문서를 확인하세요.

__CAPGO_KEEP_0__ __CAPGO_KEEP_0__.

If you need to stop receiving local updates, run this command npx @capgo/cli@latest channel set

Capacitor 앱을 무중단으로 업데이트하세요. Capacitor-업데이터를 사용하세요.

If you are using Capacitor 앱을 무중단으로 업데이트하세요. Capacitor-업데이터를 사용하세요. Enterprise 운영을 계획하고 연결하세요. Capgo Enterprise Capgo Enterprise의 제품 워크플로우 Ionic Enterprise Plugin Alternatives Ionic Enterprise Plugin Alternatives의 제품 워크플로우 Capgo Alternatives Capgo Alternatives의 제품 워크플로우 Capgo Consulting Capgo 제품 워크플로우에서 Capgo 컨설팅을 사용하고, Capgo 프리미엄 지원 Capgo 프리미엄 지원 제품 워크플로우에서 사용하고,

Capacitor 앱에 대한 라이브 업데이트

웹层 버그가 라이브일 때, 앱 스토어 승인 대기 없이 Capgo를 통해 픽스를 배포하세요. 사용자는 배경에서 업데이트를 받으며 네이티브 변경은 일반적인 검토 경로에 남아 있습니다.

Get Started Now

최신 블로그 게시물

Capgo은 전문적인 모바일 앱을 만들기 위해 필요한 최고의洞察력을 제공합니다.