如何在 Mac 上为使用 jpackage 打包的 Java 应用程序提供完整的磁盘访问权限?

huangapple 未分类评论54阅读模式
英文:

How can I grant a java app packaged with jpackage full disk access on a mac?

问题

我已经创建了一个使用jpackage打包的Java应用程序。使用AdoptOpenJDK 14编译和打包。

在Mac上安装后,它需要完全访问磁盘以复制文件到/Applications目录。

不幸的是,我简单地无法弄清楚如何做到这一点。授予应用程序完全磁盘访问权限似乎没有任何影响。

使用jpackage并不重要。它只是看起来最简单的完成任务的方法。只要它可以获得完全磁盘访问权限,我愿意使用其他方式来打包它。

英文:

I've created a java app that's packaged with jpackage. Compiled and packaged with AdoptOpenJDK 14.

After installing on a mac, it needs full disk access to copy files to the /Application directory.

Unfortunately, I simply cannot figure out how to do so. Granting full disk access to the app does not seem to make any difference.

Using jpackage is not important. It just looked like the simplest way to get it done. I'm happy to package it using something else as long as it's possible for it to get full disk access.

huangapple
  • 本文由 发表于 2020年7月27日 12:57:20
  • 转载请务必保留本文链接:https://java.coder-hub.com/63108924.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定