Skip to content

Commit 98b5e25

Browse files
authored
Merge pull request #608 from ZIMkaRU/feature/resolve-folder-request-access-on-mac-when-exporting
Resolve folder request access on mac when exporting
2 parents 89cece5 + 4405ad7 commit 98b5e25

14 files changed

Lines changed: 126 additions & 40 deletions

File tree

build/entitlements.mac.plist

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@
88
<true/>
99
<key>com.apple.security.network.server</key>
1010
<true/>
11+
<key>com.apple.security.app-sandbox</key>
12+
<true/>
13+
<key>com.apple.security.files.downloads.read-write</key>
14+
<true/>
1115
<key>com.apple.security.files.user-selected.read-only</key>
1216
<true/>
1317
<key>com.apple.security.files.user-selected.read-write</key>
@@ -24,6 +28,8 @@
2428
<true/>
2529
<key>com.apple.security.cs.allow-jit</key>
2630
<true/>
31+
<key>com.apple.security.cs.signer-programmatic-determination</key>
32+
<true/>
2733
<key>com.apple.security.cs.allow-dyld-environment-variables</key>
2834
<true/>
2935
<key>com.apple.security.cs.debugger</key>

build/entitlements.mas.inherit.plist

Lines changed: 0 additions & 34 deletions
This file was deleted.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
NSDownloadsFolderUsageDescription = "This app saves downloaded reports directly to your Downloads folder for your convenience";
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
NSDownloadsFolderUsageDescription = "Esta aplicación guarda los informes descargados directamente en tu carpeta de Descargas para tu comodidad";
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
NSDownloadsFolderUsageDescription = "Este aplicativo salva relatórios baixados diretamente na sua pasta de Downloads para sua conveniência";
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
NSDownloadsFolderUsageDescription = "Это приложение сохраняет скачанные отчеты прямо в папку Загрузки для вашего удобства";
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
NSDownloadsFolderUsageDescription = "Ứng dụng này lưu các báo cáo đã tải xuống trực tiếp vào thư mục Tải xuống của bạn để thuận tiện cho bạn";
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
NSDownloadsFolderUsageDescription = "为了您的方便,此应用程序将下载的报告直接保存到您的“下载”文件夹中。";
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
NSDownloadsFolderUsageDescription = "為了您的方便,此應用程式將下載的報告直接保存到您的「下載」檔案夾中。";

electron-builder-config.js

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,18 @@ module.exports = {
177177
hardenedRuntime: true,
178178
gatekeeperAssess: false,
179179
entitlements: 'build/entitlements.mac.plist',
180-
entitlementsInherit: 'build/entitlements.mas.inherit.plist',
180+
entitlementsInherit: 'build/entitlements.mac.plist',
181+
extendInfo: {
182+
NSDownloadsFolderUsageDescription: 'This app saves downloaded reports directly to your Downloads folder for your convenience',
183+
CFBundleLocalizations: ['en', 'es', 'pt_BR', 'ru', 'vi', 'zh_CN', 'zh_TW']
184+
},
185+
extraResources: [
186+
{
187+
from: 'build/locales',
188+
to: 'Resources',
189+
filter: ['*.lproj']
190+
}
191+
],
181192
category: 'public.app-category.finance',
182193
minimumSystemVersion: '11',
183194
darkModeSupport: true,

0 commit comments

Comments
 (0)