File size: 4,169 Bytes
4e1096a
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
{
  "$schema": "../gen/schemas/desktop-schema.json",
  "identifier": "default",
  "description": "enables the default permissions",
  "windows": ["main", "updater", "reader-*"],
  "permissions": [
    "core:default",
    "fs:default",
    {
      "identifier": "fs:scope-appconfig-recursive",
      "allow": [
        {
          "path": "$APPCONFIG"
        }
      ]
    },
    {
      "identifier": "fs:scope-appdata-recursive",
      "allow": [
        {
          "path": "$APPDATA/Readest/**/*"
        }
      ],
      "deny": []
    },
    {
      "identifier": "fs:allow-appdata-read",
      "allow": [
        {
          "path": "$APPDATA/settings.json"
        }
      ]
    },
    {
      "identifier": "fs:allow-appdata-write",
      "allow": [
        {
          "path": "$APPDATA/settings.json"
        }
      ]
    },
    {
      "identifier": "fs:allow-cache-read",
      "allow": [
        {
          "path": "$APPCACHE/**/*"
        },
        {
          "path": "/private/var/mobile/Containers/Data/Application/**/*"
        }
      ]
    },
    {
      "identifier": "fs:allow-cache-write",
      "allow": [
        {
          "path": "$APPCACHE/**/*"
        },
        {
          "path": "/private/var/mobile/Containers/Data/Application/**/*"
        }
      ]
    },
    {
      "identifier": "fs:scope",
      "allow": [
        {
          "path": "**/Readest"
        },
        {
          "path": "**/Readest/**/*"
        },
        {
          "path": "**/last-book-cover.png"
        }
      ]
    },
    {
      "identifier": "http:default",
      "allow": [
        {
          "url": "https://*.readest.com"
        },
        {
          "url": "https://github.com/readest/*"
        },
        {
          "url": "https://*.deepl.com"
        },
        {
          "url": "https://*.cloudflarestorage.com"
        },
        {
          "url": "https://edge.microsoft.com"
        },
        {
          "url": "https://translate.toil.cc"
        },
        {
          "url": "https://*.microsofttranslator.com"
        },
        {
          "url": "https://translate.googleapis.com"
        },
        {
          "url": "http://*:*"
        },
        {
          "url": "https://*:*"
        },
        {
          "url": "http://*"
        },
        {
          "url": "https://*"
        }
      ]
    },
    "websocket:default",
    "dialog:default",
    "os:default",
    "core:window:default",
    "core:window:allow-close",
    "core:window:allow-center",
    "core:window:allow-minimize",
    "core:window:allow-maximize",
    "core:window:allow-unmaximize",
    "core:window:allow-set-size",
    "core:window:allow-set-focus",
    "core:window:allow-is-maximized",
    "core:window:allow-start-dragging",
    "core:window:allow-toggle-maximize",
    "core:window:allow-set-fullscreen",
    "core:window:allow-set-always-on-top",
    "core:window:allow-destroy",
    "core:webview:allow-create-webview-window",
    "core:path:allow-resolve-directory",
    "log:default",
    "shell:default",
    "process:default",
    "process:allow-exit",
    "process:allow-restart",
    "oauth:allow-start",
    "oauth:allow-cancel",
    "sign-in-with-apple:default",
    "opener:default",
    {
      "identifier": "opener:allow-open-url",
      "allow": [
        {
          "url": "alipays:*"
        }
      ]
    },
    {
      "identifier": "shell:allow-spawn",
      "allow": [
        {
          "name": "start-readest",
          "cmd": "cmd",
          "args": ["/C", "start", "", { "validator": "^.*Readest(.*)\\.exe$" }]
        },
        {
          "name": "chmod-appimage",
          "cmd": "chmod",
          "args": ["+x", { "validator": "^.*Readest(.*)\\.AppImage$" }]
        },
        {
          "name": "launch-appimage",
          "cmd": "setsid",
          "args": [{ "validator": "^.*Readest(.*)\\.AppImage$" }]
        }
      ]
    },
    "haptics:allow-vibrate",
    "haptics:allow-impact-feedback",
    "haptics:allow-notification-feedback",
    "haptics:allow-selection-feedback",
    "deep-link:default",
    "sharekit:default",
    "native-tts:default",
    "native-bridge:default"
  ]
}