You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Oct 12, 2022. It is now read-only.
As a reminder, these keys are generated for you when you created your CodePush app via the CLI. If you need to retrieve them, you can simply run `code-push deployment ls APP_NAME -k`, and grab the key for the specific deployment you want to use (e.g. `Staging`, `Production`).
74
-
72
+
73
+
As a reminder, these keys are generated for you when you created your CodePush app via the CLI. If you need to retrieve them, you can simply run `appcenter codepush deployment list <ownerName>/<appName> --displayKeys`, and grab the key for the specific deployment you want to use (e.g. `Staging`, `Production`).
74
+
75
75
*NOTE: You [must](https://docs.microsoft.com/en-us/appcenter/distribution/codepush/cli#releasing-updates) create a separate CodePush app for iOS and Android, which is why the above sample illustrates declaring separate keys for Android and iOS. If you're only developing for a single platform, then you only need to specify the deployment key for either Android or iOS, so you don't need to add the additional `<platform>` element as illustrated above.*
76
76
77
77
Beginning from version **1.10.0** you can sign your update bundles (for more information about code signing please refer to relevant documentation [section](https://github.com/Microsoft/code-push/blob/master/cli/README.md#code-signing)). In order to enable code signing for Cordova application you should setup public key to verify bundles signature by providing following `preference` setting in `config.xml`:
@@ -151,38 +151,40 @@ Additionally, if you would like to display an update confirmation dialog (an "ac
151
151
152
152
## Releasing Updates
153
153
154
-
Once your app has been configured and distributed to your users, and you've made some code and/or asset changes, it's time to instantly release them! The simplest (and recommended) way to do this is to use the `release-cordova` comand in the CodePush CLI, which will handle preparing and releasing your update to the CodePush server.
154
+
Once your app has been configured and distributed to your users, and you've made some code and/or asset changes, it's time to instantly release them! The simplest (and recommended) way to do this is to use the `release-cordova` command in the App Center CLI, which will handle preparing and releasing your update to the CodePush server.
155
+
156
+
*NOTE: Before you can start releasing updates, please log into App Center by running the `appcenter login` command*
155
157
156
-
In it's most basic form, this command only requires two parameters: your app name and the platform you are creating the update for (either `ios` or `android`).
158
+
In it's the most basic form, this command only requires one parameter: your owner name + "/" + app name.
157
159
158
160
```shell
159
-
code-push release-cordova <appName><platform>
161
+
appcenter codepush release-cordova -a <ownerName>/<appName>
160
162
161
-
code-push release-cordova MyApp-ios ios
162
-
code-push release-cordova MyApp-Android android
163
+
appcenter codepush release-cordova -a <ownerName>/MyApp-ios
164
+
appcenter codepush release-cordova -a <ownerName>/MyApp-Android
163
165
```
164
166
165
167
*NOTE: When releasing updates to CodePush, you do not need to bump your app's version in the `config.xml` file, since you aren't modifying the binary version at all. You only need to bump this version when you upgrade Cordova and/or one of your plugins, at which point, you need to release an update to the native store(s). CodePush will automatically generate a "label" for each release you make (e.g. `v3`) in order to help identify it within your release history.*
166
168
167
-
The `release-cordova` command enables such a simple workflow because it understands the standard layout of a Cordova app, and therefore, can generate your update and know exactly which files to upload. Additionally, in order to support flexible release strategies, the `release-cordova` command exposes numerous optional parameters that let you customize how the update should be distributed to your end users (e.g. Which binary versions are compatible with it? Should the release be viewed as mandatory?).
169
+
The `release-cordova` command enables such a simple workflow because it understands the standard layout of a Cordova app, and therefore, can generate your update and know exactly which files to upload. Additionally, in order to support flexible release strategies, the `release-cordova` command exposes numerous optional parameters that let you customize how the update should be distributed to your end users (e.g. Which binary versions are compatible with it? Should the release be viewed as mandatory?).
168
170
169
171
```shell
170
172
# Release a mandatory update with a changelog
171
-
code-push release-cordova MyApp-ios ios -m --description "Modified the header color"
173
+
appcenter codepush release-cordova -a <ownerName>/MyApp-ios -m --description "Modified the header color"
172
174
173
175
# Release a dev Android build to just 1/4 of your end users
appcenter codepush release-cordova -a <ownerName>/MyApp-android --private-key-path~/rsa/private_key.pem
186
188
```
187
189
188
190
The CodePush client supports differential updates, so even though you are releasing your app code on every update, your end users will only actually download the files they need. The service handles this automatically so that you can focus on creating awesome apps and we can worry about optimizing end user downloads.
0 commit comments