mirror of
https://github.com/sparrowwallet/sparrow.git
synced 2024-12-25 13:16:44 +00:00
followup
This commit is contained in:
parent
2354b061a9
commit
dd64c18c21
1 changed files with 5 additions and 5 deletions
10
build.gradle
10
build.gradle
|
@ -291,15 +291,15 @@ jlink {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
tasks.jpackage.finalizedBy "addUserWritePermission"
|
tasks.jlink.finalizedBy "addUserWritePermission"
|
||||||
|
|
||||||
task addUserWritePermission(type: Exec) {
|
task addUserWritePermission(type: Exec) {
|
||||||
if(os.windows) {
|
if(os.windows) {
|
||||||
commandLine 'icacls', "$buildDir\\jpackage\\Sparrow\\runtime\\legal\\*"
|
commandLine 'icacls', "$buildDir\\image\\legal", '/grant', 'Users:(OI)(CI)F', '/T'
|
||||||
} else if(os.macOsX) {
|
commandLine 'icacls', "$buildDir\\image\\legal\\*"
|
||||||
commandLine 'chmod', '-R', 'u+w', "$buildDir/jpackage/Sparrow.app/Contents/runtime/Contents/Home/legal"
|
commandLine 'icacls', "$buildDir\\image\\legal\\java.base\\*"
|
||||||
} else {
|
} else {
|
||||||
commandLine 'chmod', '-R', 'u+w', "$buildDir/jpackage/Sparrow/lib/runtime/legal"
|
commandLine 'chmod', '-R', 'u+w', "$buildDir/image/legal"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue