mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-20 22:26:54 +01:00
record current git-diff in assets
This commit is contained in:
parent
618ee89add
commit
5dc9327d31
1 changed files with 7 additions and 1 deletions
|
@ -256,7 +256,13 @@ task makeBuildAssets() {
|
||||||
def assetsDir = android.sourceSets.main.assets.srcDirs.toArray()[0]
|
def assetsDir = android.sourceSets.main.assets.srcDirs.toArray()[0]
|
||||||
String path = new File(assetsDir, 'build-info.txt').getAbsolutePath()
|
String path = new File(assetsDir, 'build-info.txt').getAbsolutePath()
|
||||||
File file = new File(path);
|
File file = new File(path);
|
||||||
file.write("git: ${GITREV}\n");
|
String out = "git: ${GITREV}\n"
|
||||||
|
|
||||||
|
String diff = "git diff".execute().text.trim()
|
||||||
|
if (diff) {
|
||||||
|
out += "\n" + diff
|
||||||
|
}
|
||||||
|
file.write(out)
|
||||||
}
|
}
|
||||||
|
|
||||||
gradle.projectsEvaluated {
|
gradle.projectsEvaluated {
|
||||||
|
|
Loading…
Reference in a new issue