mirror of
https://github.com/sparrowwallet/sparrow.git
synced 2024-12-25 13:16:44 +00:00
add user write permissions to jvm legal files
This commit is contained in:
parent
a5050117a3
commit
2354b061a9
1 changed files with 12 additions and 0 deletions
12
build.gradle
12
build.gradle
|
@ -291,6 +291,18 @@ jlink {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
tasks.jpackage.finalizedBy "addUserWritePermission"
|
||||||
|
|
||||||
|
task addUserWritePermission(type: Exec) {
|
||||||
|
if(os.windows) {
|
||||||
|
commandLine 'icacls', "$buildDir\\jpackage\\Sparrow\\runtime\\legal\\*"
|
||||||
|
} else if(os.macOsX) {
|
||||||
|
commandLine 'chmod', '-R', 'u+w', "$buildDir/jpackage/Sparrow.app/Contents/runtime/Contents/Home/legal"
|
||||||
|
} else {
|
||||||
|
commandLine 'chmod', '-R', 'u+w', "$buildDir/jpackage/Sparrow/lib/runtime/legal"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
task removeGroupWritePermission(type: Exec) {
|
task removeGroupWritePermission(type: Exec) {
|
||||||
commandLine 'chmod', '-R', 'g-w', "$buildDir/jpackage/Sparrow"
|
commandLine 'chmod', '-R', 'g-w', "$buildDir/jpackage/Sparrow"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue