mz-code-push-cli

Mezeron host code push

Usage no npm install needed!

<script type="module">
  import mzCodePushCli from 'https://cdn.skypack.dev/mz-code-push-cli';
</script>

README

add plugin

npm install -g mz-code-push-cli

配置样例

{
  "prod":{
    "name": "yiren-ylh",
    "ios_identifier": "cn.mezeron.yiren",
    "android_identifier": "cn.mezeron.yiren",
    "update": "now",
    "content_url": "http://121.9.234.3/yiren"
  },
  "test":{
      "name": "yiren-ylh-test",
      "ios_identifier": "cn.mezeron.yiren.test",
      "android_identifier": "cn.mezeron.yiren.test",
      "update": "now",
      "content_url": "http://ylh-test.mezeron.cn/yiren"
  }
}

环境切换

mz-hcp build --dev
mz-hcp build --test
mz-hcp build --prod

npm publish --registry=https://registry.npmjs.org/