Skip to content

Commit dd64c18

Browse files
committed
followup
1 parent 2354b06 commit dd64c18

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

build.gradle

+5-5
Original file line numberDiff line numberDiff line change
@@ -291,15 +291,15 @@ jlink {
291291
}
292292
}
293293

294-
tasks.jpackage.finalizedBy "addUserWritePermission"
294+
tasks.jlink.finalizedBy "addUserWritePermission"
295295

296296
task addUserWritePermission(type: Exec) {
297297
if(os.windows) {
298-
commandLine 'icacls', "$buildDir\\jpackage\\Sparrow\\runtime\\legal\\*"
299-
} else if(os.macOsX) {
300-
commandLine 'chmod', '-R', 'u+w', "$buildDir/jpackage/Sparrow.app/Contents/runtime/Contents/Home/legal"
298+
commandLine 'icacls', "$buildDir\\image\\legal", '/grant', 'Users:(OI)(CI)F', '/T'
299+
commandLine 'icacls', "$buildDir\\image\\legal\\*"
300+
commandLine 'icacls', "$buildDir\\image\\legal\\java.base\\*"
301301
} else {
302-
commandLine 'chmod', '-R', 'u+w', "$buildDir/jpackage/Sparrow/lib/runtime/legal"
302+
commandLine 'chmod', '-R', 'u+w', "$buildDir/image/legal"
303303
}
304304
}
305305

0 commit comments

Comments
 (0)