Skip to content

Commit

Permalink
Adjust build instruction for Linux
Browse files Browse the repository at this point in the history
  • Loading branch information
seven332 committed Apr 13, 2016
1 parent a835ca9 commit df108f9
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 4 deletions.
17 changes: 14 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,23 @@ An E-Hentai Application for Android.

# Build

Windows

> git clone https://github.com/seven332/EhViewer
> cd EhViewer
> git submodule update --init
> gradlew app:copyNotice
> gradlew daogenerator:executeDaoGenerator
> gradlew app:assembleDebug

Linux

$ git clone https://github.com/seven332/EhViewer
$ cd EhViewer
$ git submodule update --init
$ gradlew app:copyNotice
$ gradlew daogenerator:executeDaoGenerator
$ gradlew app:assembleDebug
$ ./gradlew app:copyNotice
$ ./gradlew daogenerator:executeDaoGenerator
$ ./gradlew app:assembleDebug

生成的 apk 文件在 app\build\outputs\apk 目录下

Expand Down
2 changes: 1 addition & 1 deletion app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ android {
} else {
ndkBuilder = 'ndk-build'
}
commandLine "$ndkDir\\$ndkBuilder",
commandLine "$ndkDir/$ndkBuilder",
'-C', file('src/main/jni').absolutePath,
'-j', Runtime.runtime.availableProcessors()
}
Expand Down

0 comments on commit df108f9

Please sign in to comment.