Skip to content

Instantly share code, notes, and snippets.

@luizcarraro
Created June 19, 2017 12:08
Show Gist options
  • Save luizcarraro/06e66be4bc5f6d0cb647ecf000a21721 to your computer and use it in GitHub Desktop.
Save luizcarraro/06e66be4bc5f6d0cb647ecf000a21721 to your computer and use it in GitHub Desktop.
iOS build with cordova
#!/bin/bash
# param of enviroment: staging, production and development
# IMPORTANT: change __Project__ for your project name
echo -e '\033[01;32m >>>>>>>>>>>>>>>>>>>>>>>> ETAPA 1/3 > APLICANDO CONFIGURAÇÕES IOS AO PROJETO \033[00;37m'
sed -i '' 's/material/ios/g' ember-cli-build.js
echo -e '\033[01;32m >>>>>>>>>>>>>>>>>>>>>>>> ETAPA 2/3 > FAZENDO BUILD PARA IOS \033[00;37m'
ember cordova:build --environment=$1 --platform=ios
echo -e '\033[01;32m >>>>>>>>>>>>>>>>>>>>>>>> ETAPA 3/3 > ABRINDO XCODE \033[00;37m'
open cordova/platforms/ios/__Project__.xcodeproj
echo -e '\033[01;32m APÓS TESTAR A BUILD EM UM EMULADOR, SELECIONE UM "GENERIC IOS DEVICE", VÁ NA ABA Product > Archive \033[00;37m'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment