refine binary install

This commit is contained in:
Max Lv
2015-07-29 13:49:08 +08:00
parent c208c4bf50
commit 092d880c7d
@@ -480,7 +480,7 @@ class Shadowsocks
status.edit.putBoolean(getVersionName, true).apply()
currentProfile = profileManager.create()
spawn {
reset()
install()
h.sendEmptyMessage(0)
}
}
@@ -916,10 +916,7 @@ class Shadowsocks
Console.runRootCommand(ab.toArray)
}
def reset() {
crashRecovery()
def install() {
copyAssets(System.getABI)
val ab = new ArrayBuffer[String]
@@ -927,7 +924,13 @@ class Shadowsocks
ab.append("chmod 755 " + Path.BASE + executable)
}
Console.runCommand(ab.toArray)
}
def reset() {
crashRecovery()
install()
}
private def recovery() {