Skip to content

Commit 0fd66d8

Browse files
committed
Set executable permissions for the 'valkyrie' binary in CLI distribution
1 parent 772f941 commit 0fd66d8

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

tools/cli/build.gradle.kts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,13 @@ val buildWithR8 by tasks.registering(JavaExec::class) {
7777
val buildCLI by tasks.registering(Zip::class) {
7878
dependsOn(buildWithR8)
7979

80-
from(layout.buildDirectory.file("install/valkyrie-shadow"))
80+
from(layout.buildDirectory.file("install/valkyrie-shadow")) {
81+
filesMatching("bin/valkyrie") {
82+
permissions {
83+
unix("rwxr-xr-x") // 755 in octal
84+
}
85+
}
86+
}
8187

8288
archiveFileName.set("$baseName-cli-$version.zip")
8389
destinationDirectory.set(layout.buildDirectory.dir("distributions/"))

0 commit comments

Comments
 (0)