Skip to content

Commit

Permalink
followup
Browse files Browse the repository at this point in the history
  • Loading branch information
craigraw committed Apr 18, 2024
1 parent 2354b06 commit dd64c18
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}

Expand Down

0 comments on commit dd64c18

Please sign in to comment.