Skip to content

Commit

Permalink
build: pass canonical path to git --git-dir to avoid failure on Win…
Browse files Browse the repository at this point in the history
…dows
  • Loading branch information
WhiredPlanck committed Dec 13, 2024
1 parent bfb1b56 commit e7e3fc2
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ class NativeAppConventionPlugin : NativeBaseConventionPlugin() {
get() = file("src/main/jni/OpenCC/.git")

private val Project.librimeVersion: String
get() = runCmd("git --git-dir ${librimeDotGit.absolutePath} describe --tags --long --always --exclude 'latest'")
get() = runCmd("git --git-dir ${librimeDotGit.canonicalPath} describe --tags --long --always --exclude 'latest'")

private val Project.openccVersion: String
get() =
runCmd("git --git-dir ${openccDotGit.absolutePath} describe --tags --long --always")
runCmd("git --git-dir ${openccDotGit.canonicalPath} describe --tags --long --always")

override fun apply(target: Project) {
super.apply(target)
Expand Down

0 comments on commit e7e3fc2

Please sign in to comment.