mirror of
https://github.com/sparrowwallet/sparrow.git
synced 2024-12-24 20:56:45 +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) {
|
||||
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"
|
||||
commandLine 'icacls', "$buildDir\\image\\legal", '/grant', 'Users:(OI)(CI)F', '/T'
|
||||
commandLine 'icacls', "$buildDir\\image\\legal\\*"
|
||||
commandLine 'icacls', "$buildDir\\image\\legal\\java.base\\*"
|
||||
} 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