Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save daemin-hwang/e2215ae5429db0906999 to your computer and use it in GitHub Desktop.
Save daemin-hwang/e2215ae5429db0906999 to your computer and use it in GitHub Desktop.
미티어 1.2.1 ver 리눅스 모바일 플랫폼 빌드
미티어 1.2.1 버전 기준이다.
업데이트를 하지 않았다면 아래 커맨드를 입력하자. 프로젝트/.meteor/release 파일내에 업데이트된 미티어 버전이 기입되어있어야 한다.
> meteor update
[관련 링크]
https://github.com/meteor/meteor/wiki/Mobile-Development-Install:-Android-on-Linux
//git 인스톨 (소스 clone을 위한..)
> apt-get install git
//노드js 다운로드
> wget https://nodejs.org/dist/v0.12.7/node-v0.12.7-linux-x64.tar.gz
//안드로이드 SDK 다운로드
> wget http://dl.google.com/android/android-sdk_r24.3.4-linux.tgz
//미티어 설치
> curl https://install.meteor.com/ | sh
If you're on Ubuntu 14.04 LTS, you'll have to add the Ubuntu Make ppa first:
* sudo add-apt-repository ppa:ubuntu-desktop/ubuntu-make
* sudo apt-get update
Then, you can install Ubuntu Make itself:
* sudo apt-get install ubuntu-make
And finally you use Ubuntu Make to install Android Studio and all dependencies:
* umake android
// If you're running on a 64 bit machine, the Android SDK & emulator also needs some 32 bit libraries:
> sudo apt-get update; sudo apt-get install --yes lib32z1 lib32stdc++6
//다운로드 받을것 들 압축 해제후 심볼릭 링크 생성
-> ln -s "원본경로" "링크명"
ex) > ln -s /home/vagrant/sw/avaiable/node node
// ~ .bashrc 프로파일 PATH 수정(VIM)
export NODE_HOME=/home/vagrant/sw/enabled/node
export JAVA_HOME=/home/vagrant/sw/enabled/jdk
export ANDROID_HOME=/home/vagrant/sw/enabled/android
export PATH=$PATH:$NODE_HOME/bin:$JAVA_HOME/bin:$ANDROID_HOME/platform-tools:$ANDROID_HOME/tools:
// ~ .bashrc 적용
> source ~/.bashrc
//아이론 CLI 설치 (사용하지 않으면 설치 안해도 무방)
> npm install -g iron-meteor
//안드로이드 platform SDK & 빌드 툴 설치
//설치 가능한 패키지 목록 보기
> android list sdk --all
//설치 해야할 목록
Android SDK Platform-tools(2)
Android SDK Tools(1)
Android SDK Build-tools(4)
(SDK Platform Android 2.2 버젼기준으로 그때마다 ID번호가 바뀔 수 있음).
//설치 (패키지 번호 ',' 로 구분하여 설치)
> android update sdk --no-ui --filter 1,2,4
> android update sdk --no-ui --filter android-22
//미티어 안드로이드 add platform 적용
> meteor add-platform android --verbose
* 플랫폼 설치가 안될때 아래 링크를 참조 한다.
https://github.com/meteor/meteor/issues/5317
=> ~/.cordova 폴더를 삭제해본다.
//미티어 안드로이드 빌드
> meteor build ../build --server localhost:3000 --verbose
* 빌드시 "Cordova error: Failed to fetch plugin" 와 같은 에러가 날 경우 아래 경로 폴더 삭제
~/.android/
~/.cordova/
~/.gradle/
~/.npm/
~/.plugman/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment