Skip to content

Commit

Permalink
Integrate bash scripts into sbt (shadowsocks#692)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mygod authored and madeye committed May 23, 2016
1 parent a1871f7 commit 505e40e
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 7 deletions.
5 changes: 2 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ addons:
- libncurses5:i386

scala:
- 2.11.7
- 2.11.8

before_cache:
- find $HOME/.sbt -name "*.lock" | xargs rm
Expand All @@ -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
5 changes: 1 addition & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
10 changes: 10 additions & 0 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -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" !
}
File renamed without changes.

0 comments on commit 505e40e

Please sign in to comment.