Skip to content

Commit

Permalink
refine binary install
Browse files Browse the repository at this point in the history
  • Loading branch information
madeye committed Jul 29, 2015
1 parent c208c4b commit 092d880
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions src/main/scala/com/github/shadowsocks/Shadowsocks.scala
Original file line number Diff line number Diff line change
Expand Up @@ -480,7 +480,7 @@ class Shadowsocks
status.edit.putBoolean(getVersionName, true).apply()
currentProfile = profileManager.create()
spawn {
reset()
install()
h.sendEmptyMessage(0)
}
}
Expand Down Expand Up @@ -916,18 +916,21 @@ class Shadowsocks
Console.runRootCommand(ab.toArray)
}

def reset() {

crashRecovery()

def install() {
copyAssets(System.getABI)

val ab = new ArrayBuffer[String]
for (executable <- Shadowsocks.EXECUTABLES) {
ab.append("chmod 755 " + Path.BASE + executable)
}
Console.runCommand(ab.toArray)
}

def reset() {

crashRecovery()

install()
}

private def recovery() {
Expand Down

0 comments on commit 092d880

Please sign in to comment.