Commit 97737cad authored by Athurg Gooth's avatar Athurg Gooth

Add OS X build guide into README

parent f4c0ec31
......@@ -16,7 +16,7 @@ Help to translate shadowsocks: http://crowdin.net/project/shadowsocks/invite
* JDK 1.6+
* SBT 0.12.4
* Android SDK r21+
* Android SDK r21+ ( with SDK Platform Android 4.1.2, API 16, revision 4 )
* Android NDK r9+
### BUILD
......@@ -36,6 +36,25 @@ Help to translate shadowsocks: http://crowdin.net/project/shadowsocks/invite
sbt clean release
```
#### BUILD ON Mac OS X (with HomeBrew)
* Install Android SDK and NDK by run `brew install android-ndk android-sdk`
* Add `export ANDROID_HOME=/usr/local/opt/android-sdk` to your .bashrc , then reopen the shell to loat it.
* Run `android update sdk --filter tools,platform-tools,android-16 --no-ui --no-https -a` to insall SDK Platform Android 4.1.2, API 16, revision 4.
* Create your key following the instructions at http://developer.android.com/guide/publishing/app-signing.html#cert
* Put your key in ~/.keystore
* Create `local.sbt` from `local.sbt.example` with your own key alias .
* Invoke the building like this
```bash
# Build native binaries
./build-ndk.sh
# Build the apk
sbt clean
sbt apk
```
### LICENSE
Copyright (C) 2013 Max Lv <max.c.lv@gmail.com>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment