curl https://install.meteor.com/ | sh meteor add-platform $PLATFORM meteor build $PLATFORM --server $SERVER
While buddybuild natively supports Cordova, additional steps are required to integrate Meteor into your build.
To start with, ensure you have checked in the
.meteor folder in your
project, excluding the
local folder as buddybuild doesn’t need it.
Without it, buddybuild won’t be able to build your project.
First, we need to tell buddybuild how to build your meteor project. We
can do this by having a
buddybuild_postclone.sh file in the root of your
repository. You can find more information about our custom build steps
Once you have that file in your repository, follow the steps to
sign up with
buddybuild. Your first build will fail, because buddybuild doesn’t yet
know about the
$SERVER environment variables we are
using in the
$PLATFORM variable should be either ios or android,
depending on which platform you want to build this project for. The
$SERVER variable should represent your development server in the
format server:port. Once you’ve added those 2 variables, retry the
Buddybuild detects many apps and frameworks within your project; make sure to select the correct one.
For iOS projects, you should select the workspace project, the one not
.meteor folder. For Android, you can select the Android