Commit 092d880c authored by Max Lv's avatar Max Lv

refine binary install

parent c208c4bf
...@@ -480,7 +480,7 @@ class Shadowsocks ...@@ -480,7 +480,7 @@ class Shadowsocks
status.edit.putBoolean(getVersionName, true).apply() status.edit.putBoolean(getVersionName, true).apply()
currentProfile = profileManager.create() currentProfile = profileManager.create()
spawn { spawn {
reset() install()
h.sendEmptyMessage(0) h.sendEmptyMessage(0)
} }
} }
...@@ -916,10 +916,7 @@ class Shadowsocks ...@@ -916,10 +916,7 @@ class Shadowsocks
Console.runRootCommand(ab.toArray) Console.runRootCommand(ab.toArray)
} }
def reset() { def install() {
crashRecovery()
copyAssets(System.getABI) copyAssets(System.getABI)
val ab = new ArrayBuffer[String] val ab = new ArrayBuffer[String]
...@@ -927,7 +924,13 @@ class Shadowsocks ...@@ -927,7 +924,13 @@ class Shadowsocks
ab.append("chmod 755 " + Path.BASE + executable) ab.append("chmod 755 " + Path.BASE + executable)
} }
Console.runCommand(ab.toArray) Console.runCommand(ab.toArray)
}
def reset() {
crashRecovery()
install()
} }
private def recovery() { private def recovery() {
......
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