From e7eaa8a102d86086fa3159ad80c9224facb7739e Mon Sep 17 00:00:00 2001 From: develar Date: Fri, 19 Jul 2019 09:41:11 +0200 Subject: [PATCH] fix(dmg): cannot build DMG on macOS 10.15 Close #3990 --- .idea/codeStyles/Project.xml | 7 + .idea/dictionaries/develar.xml | 1 + package.json | 6 +- packages/app-builder-lib/package.json | 4 +- packages/app-builder-lib/scheme.json | 8 +- packages/app-builder-lib/src/configuration.ts | 8 +- .../app-builder-lib/src/options/macOptions.ts | 17 +- packages/app-builder-lib/src/packager.ts | 9 +- .../src/publish/PublishManager.ts | 2 +- .../src/targets/nsis/nsisOptions.ts | 2 +- .../app-builder-lib/src/util/appBuilder.ts | 4 + packages/app-builder-lib/src/util/config.ts | 38 +- packages/builder-util/package.json | 2 +- packages/dmg-builder/package.json | 3 +- packages/dmg-builder/src/dmg.ts | 147 ++-- packages/dmg-builder/src/dmgUtil.ts | 17 - .../dmg-builder/templates/dmgProperties.pl | 44 - packages/dmg-builder/templates/settings.py | 230 ----- .../dmg-builder/vendor/Mac/Finder/DSStore.pm | 733 --------------- .../Mac/Finder/DSStore/BuddyAllocator.pm | 783 ---------------- .../vendor/Mac/Finder/DSStore/Format.pod | 552 ------------ .../dmg-builder/vendor/biplist/__init__.py | 278 ++++-- .../dmg-builder/vendor/dmgbuild/__init__.py | 3 - packages/dmg-builder/vendor/dmgbuild/core.py | 832 ++++++------------ .../dmg-builder/vendor/dmgbuild/resources.py | 355 -------- packages/dmg-builder/vendor/ds_store/store.py | 2 +- packages/electron-builder/package.json | 2 +- test/fixtures/test-app-one/index.js | 64 +- .../packages/test-app/index.js | 67 -- .../packages/test-app/index.js | 67 -- .../packages/test-app/index.js | 67 -- test/out/__snapshots__/BuildTest.js.snap | 4 +- .../configurationValidationTest.js.snap | 21 +- test/out/__snapshots__/globTest.js.snap | 14 +- test/out/__snapshots__/protonTest.js.snap | 38 +- test/out/mac/__snapshots__/dmgTest.js.snap | 68 ++ .../mac/__snapshots__/macArchiveTest.js.snap | 20 +- test/src/mac/dmgTest.ts | 24 + test/src/protonTest.ts | 8 +- yarn.lock | 48 +- 40 files changed, 817 insertions(+), 3782 deletions(-) delete mode 100644 packages/dmg-builder/templates/dmgProperties.pl delete mode 100644 packages/dmg-builder/templates/settings.py delete mode 100644 packages/dmg-builder/vendor/Mac/Finder/DSStore.pm delete mode 100644 packages/dmg-builder/vendor/Mac/Finder/DSStore/BuddyAllocator.pm delete mode 100644 packages/dmg-builder/vendor/Mac/Finder/DSStore/Format.pod delete mode 100644 packages/dmg-builder/vendor/dmgbuild/__init__.py delete mode 100644 packages/dmg-builder/vendor/dmgbuild/resources.py diff --git a/.idea/codeStyles/Project.xml b/.idea/codeStyles/Project.xml index 9f8e8a245ea..24e63815faf 100644 --- a/.idea/codeStyles/Project.xml +++ b/.idea/codeStyles/Project.xml @@ -64,6 +64,13 @@