fix: remove unnecessary changes for auto-update and add comments (#5338)

This commit is contained in:
Wahaj 2022-04-08 12:31:45 -07:00 коммит произвёл GitHub
Родитель 28b99e58df
Коммит 771b9e5e33
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
3 изменённых файлов: 6 добавлений и 4 удалений

Просмотреть файл

@ -5,7 +5,7 @@
The macOS electron-builder update process requires a zip file
(electron-builder #4230), but the zip file produced by
electron-builder is corrupted (electron-builder #3534).
We use 7z to create the zip file ourselves.
We use ditto to create the zip file ourselves.
*/
const child_process = require('child_process');

Просмотреть файл

@ -38,10 +38,14 @@ linux:
appImage:
license: src/electron/resources/mit_license.txt
# electron-userland/electron-builder#2199 suggests we should produce a zip using electron-builder
# even if we do not use it (for auto-update to work) but that actually leads to issues when updating
# (accessibility-insights-web/3942#issuecomment-1090857396). As such, we only build the dmg with
# electron-builder and build the zip ourselves.
mac:
artifactName: ${productName}.${ext}
icon: TARGET_SPECIFIC
target: dmg # we also need zip (electron-userland/electron-builder#2199) & add it in grunt
target: dmg
identity: null
win:

Просмотреть файл

@ -8,7 +8,5 @@
<true/>
<key>com.apple.security.cs.disable-library-validation</key>
<true/>
<key>com.apple.security.cs.allow-dyld-environment-variables</key>
<true/>
</dict>
</plist>