Integrate bash scripts into sbt (#692)

This commit is contained in:
Mygod
2016-05-23 16:42:46 +08:00
committed by Max Lv
parent a1871f792d
commit 505e40eb3e
4 changed files with 13 additions and 7 deletions
+2 -3
View File
@@ -13,7 +13,7 @@ addons:
- libncurses5:i386
scala:
- 2.11.7
- 2.11.8
before_cache:
- find $HOME/.sbt -name "*.lock" | xargs rm
@@ -34,5 +34,4 @@ before_install:
- cp local.properties.travis local.properties
script:
- ./build.sh > /dev/null
- sbt android:package-release
- sbt native-build android:package-release
+1 -4
View File
@@ -26,12 +26,9 @@ A [shadowsocks](http://shadowsocks.org) client for Android, written in Scala.
```bash
git submodule update --init
# Build native binaries
./build.sh
# Build the App
sbt clean android:package-release
sbt native-build clean android:package-release
```
#### BUILD on Mac OS X (with HomeBrew)
+10
View File
@@ -53,3 +53,13 @@ proguardOptions in Android ++= Seq("-keep class com.github.shadowsocks.** { <ini
"-dontnote com.j256.ormlite.**",
"-dontnote org.xbill.**",
"-dontwarn org.xbill.**")
lazy val nativeBuild = TaskKey[Unit]("native-build", "Build native executables")
lazy val launcher = TaskKey[Unit]("launcher", "Generate launcher icons")
nativeBuild := {
"./build.sh" !
}
launcher := {
"./launcher.sh" !
}
View File