【问题标题】:Electron MAS build file accessElectron MAS 构建文件访问
【发布时间】:2017-12-23 23:57:02
【问题描述】:

我对我的 mac 应用商店构建有疑问。我刚刚将我的应用提交到应用商店但被拒绝了。唯一的问题是准则 2.4.5(i) - 性能。 Your application accesses the following location ~/Downloads/.##########.com.CompanyName.MyApp.PFa1Yx(编辑了个人详细信息)然后它说majority of developers encounter this issue are opening files in Read/Write instead of Read-Only mode我不完全确定我的应用程序为什么要访问那个下载文件夹。我正在使用 HTML5 文件对象 API 让用户选择一个文件 (<input type="file" id="choose_dir" style="display: none;" multiple>) 并在他们完成应用程序时保存文件 (javascript FileSaver 库 saveAs(content, WatermarkText+".zip");)。我认为在我的 Entitlements.plist 中有 com.apple.security.files.user-selected.read-write 会涵盖这个吗?谢谢!

【问题讨论】:

    标签: macos electron electron-builder electron-packager


    【解决方案1】:

    发现我只需要添加 com.apple.security.files.downloads.read-write 和 com.apple.security.files.user-selected.read-only 以及 com.apple.security.files.user -selected.read-write 在我的权利中。打开对话框为只读,保存对话框为读写。

    【讨论】:

      猜你喜欢
      • 2019-12-15
      • 2018-03-24
      • 1970-01-01
      • 2019-08-08
      • 1970-01-01
      • 2016-09-29
      • 2023-03-25
      • 2020-05-27
      • 2021-12-25
      相关资源
      最近更新 更多