OGeek|极客世界-中国程序员成长平台

标题: ios - 沃尔玛电极基本了解 [打印本页]

作者: 菜鸟教程小白    时间: 2022-12-11 19:04
标题: ios - 沃尔玛电极基本了解

我正在尝试使用 Electrode (Walmart - http://www.electrode.io/site/docs/introduction.html) 创建一个基于 ReactNative 的基本 iOS 应用

虽然我可以让该应用在我的 Mac 上本地运行,但我很难理解整个无线 (OTA) 更新可以/应该如何运行。

这是我到目前为止所做的

但是当我使用 ern run-ios 运行应用程序时,它似乎仍然指向我的本地计算机(我可以更新 index-ios.js 文件并在应用程序中更新)。那么,让整个 OTA 设置运行到另一个程序员可以更新 cloud/bitbucket 中的 index-ios.js 文件(我猜)并即时更新应用程序的地方缺少什么?



Best Answer-推荐答案


如果我理解正确,要使 OTA 工作,您需要使用 code-push 命令。

ern code-push <miniapps..>

Options:
  --help                     Show help                                                                                                                                                             [boolean]
  --descriptor, -d           Full native application selector (target native application version for the push)
  --force, -f                Force upgrade (ignore compatibility issues -at your own risks-)
  --appName                  Application name
  --deploymentName           Deployment to release the update to                                                                                                                                    [string]
  --platform, -p             Platform name (android / ios)                                                                                                                                          [string]
  --targetBinaryVersion, -t  Semver expression that specifies the binary app version(s) this release is targeting (e.g. 1.1.0, ~1.2.3)                                                              [string]
  --mandatory, -m            Specifies whether this release should be considered mandatory                                                                                                  [default: false]
  --rollout, -r              Percentage of users this release should be immediately available to                                                                                  [string] [default: "100%"]
  --skipConfirmation, -s     Skip final confirmation prompt if no compatibility issues are detected

More info about this command @ https://electrode.gitbooks.io/electrode-native/content/cli/code-push.html

关于ios - 沃尔玛电极基本了解,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46888588/






欢迎光临 OGeek|极客世界-中国程序员成长平台 (http://ogeek.cn/) Powered by Discuz! X3.4