Skip to content

Commit

Permalink
🐛 回滚execShell的改动修复启动失败的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
Szzrain committed Apr 5, 2023
1 parent a881961 commit 6316fb6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ android {
//noinspection ExpiredTargetSdkVersion
targetSdk 28
versionCode 27
versionName "v0.4.7-rc"
versionName "v0.4.7-rc2"
buildConfigField "String", "DOCUMENTS_AUTHORITY", "\"com.sealdice.dice.authorities\""
testInstrumentationRunner 'androidx.test.runner.AndroidJUnitRunner'
}
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/java/com/sealdice/dice/FirstFragment.kt
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ class FirstFragment : Fragment() {
ExtractAssets(context).extractResources("sealdice")
}
val args = sharedPreferences?.getString("launch_args", "")
execShell("pkill -SIGINT sealdice-core&&cd sealdice&&./sealdice-core $args",true)
execShell("cd sealdice&&./sealdice-core $args",true)
binding.buttonTut.visibility = View.GONE
binding.buttonInput.visibility = View.GONE
binding.buttonOutput.visibility = View.GONE
Expand Down

0 comments on commit 6316fb6

Please sign in to comment.