Commit 1fe0ab99 authored by Max Lv's avatar Max Lv

Refine native build by @wongsyrone

parent 2adaa71e
...@@ -59,5 +59,9 @@ proguardOptions in Android ++= Seq("-keep class com.github.shadowsocks.** { <ini ...@@ -59,5 +59,9 @@ proguardOptions in Android ++= Seq("-keep class com.github.shadowsocks.** { <ini
lazy val nativeBuild = TaskKey[Unit]("native-build", "Build native executables") lazy val nativeBuild = TaskKey[Unit]("native-build", "Build native executables")
nativeBuild := { nativeBuild := {
"./build.sh" ! val logger = streams.value.log
Process("./build.sh") ! logger match {
case 0 => // Success!
case n => sys.error(s"Native build script exit code: $n")
}
} }
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