mirror of
https://github.com/sparrowwallet/sparrow.git
synced 2026-08-09 00:04:55 +00:00
add user write permissions to jvm legal files
This commit is contained in:
@@ -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) {
|
||||
commandLine 'chmod', '-R', 'g-w', "$buildDir/jpackage/Sparrow"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user