Integrate bash scripts into sbt (#692)
This commit is contained in:
+2
-3
@@ -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
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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" !
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user