Generate apk file for meteor app

后端 未结 5 2047
我寻月下人不归
我寻月下人不归 2021-02-01 07:52

I have a project is working for android browser. Is there a way to generate the apk file?
Also, are there anything that I shoud know before generating the apk file?

5条回答
  •  無奈伤痛
    2021-02-01 08:16

    There are a few steps to follow in order to generate the Android application file (.apk) from a meteor app:

    1. meteor install-sdk android
    2. Have the mobile-config.js file in your project root (mobile-config.js example)
    3. meteor add-platform android
    4. meteor build ~/your-output-dir --server=yourapp.meteor.com

    Then you will have your .apk file in ~/your-output-dir/android/unaligned.apk

    If you want to proceed and submit to Google Play Store, here are the steps to follow: https://guide.meteor.com/mobile.html#submitting-android

    Hope this helps!

提交回复
热议问题