titanium studio by winodws7 を卒業して titanium cli + tishadow by ubuntu12.04にしてみた①

これまでtitanium studioで作業してきたけど、titanium studio自体、重くてもっさり&エミュレータ遅すぎで使えないためでテストは実機で。それでもandroidへの転送に1分以上かかったりしてどうしたものやらと思っていたところ、tishadowなる神ツールの存在を知りvagrant様の力をお借りしてubuntu&コマンドラインベースの開発環境に変更してみた。

oracle java6 jdkインストール

いろいろためしてこの方法でなんとかいけた

sudo apt-get install python-software-properties
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java6-installer
sudo apt-get install oracle-java6-set-default
sudo update-alternatives --config java # バージョン選択
update-java-alternatives -l # 確認
java -version # バージョン
android sdkインストール
cd ~
wget http://dl.google.com/android/android-sdk_r22.0.5-linux.tgz
tar zxf android-sdk_r22.0.5-linux.tgz

vim ~/.bash_profile

export ANDROID_SDK_ROOT=$HOME/android-sdk-linux
export PATH=$PATH:$ANDROID_SDK_ROOT/tools:$ANDROID_SDK_ROOT/platform-tools

設定反映&sdkインストール

source ~/.bash_profile
android update sdk --no-ui
下記urlのvendor idを参考にandroidデバイス設定

Using Hardware Devices | Android Developers
sudo vi /etc/udev/rules.d/51-android.rules

#Kyocera
SUBSYSTEM=="usb", ATTR{idVendor}=="0482", MODE="0666"

権限変更

sudo chmod a+r /etc/udev/rules.d/51-android.rules

接続確認(あらかじめvirtualboxのusbコントローラー有効化&デバイスフィルター追加)

adb devices
以前、node.jsは導入済みなのでtitaniumのインストール

nvmでnode.jsインストール by ubuntu - shoprevのブログ

npm install titanium -g
titanium sdkアップデート(聞かれるメアドとパスは登録済みのもの)
titanium sdk update --install
titanium初期設定
titanium setup

聞かれる内容

What is your name?
=>hogehoge
What is your email address used for logging into the Appcelerator Network?
=>hogehoge@hoge.com
What would you like as your default locale?
=>jp
What Titanium SDK would you like to use by default?
=>3.1.1.GA
Path to your workspace where your projects should be created
=>/home/vagrant/share/titanium
Path to the Android SDK
=>/home/vagrant/android-sdk-linux
titaniumアプリ作成
titanium create

聞かれる内容

Target platforms: (android,ios,ipad,iphone,mobileweb)
=>android
App ID:
=>com.hoge.helloworld
Project name:
=>helloworld