From 9596448fd1fd8129eee858daf9b145ab04e77c7b Mon Sep 17 00:00:00 2001 From: develar Date: Mon, 23 Oct 2017 09:20:09 +0200 Subject: [PATCH] WIP: MSI installer #723 --- .idea/dictionaries/develar.xml | 4 + .idea/inspectionProfiles/Project_Default.xml | 1 + package.json | 2 +- packages/builder-util-runtime/src/uuid.ts | 97 +------- packages/electron-builder/package.json | 4 +- .../src/cli/create-self-signed-cert.ts | 2 +- .../electron-builder/src/configuration.ts | 6 +- packages/electron-builder/src/index.ts | 4 +- .../src/options/AppXOptions.ts | 52 ++++ .../src/options/MsiOptions.ts | 26 ++ .../src/options/winOptions.ts | 55 +---- packages/electron-builder/src/parallels.ts | 5 +- .../src/targets/{appx.ts => AppxTarget.ts} | 30 +-- .../electron-builder/src/targets/MsiTarget.ts | 222 ++++++++++++++++++ .../electron-builder/src/targets/nsis/nsis.ts | 4 +- .../src/targets/targetUtil.ts | 25 ++ packages/electron-builder/src/winPackager.ts | 7 +- .../templates/msi/template.wxs | 30 +++ packages/electron-publish/package.json | 2 +- .../configurationValidationTest.js.snap | 2 +- .../out/windows/__snapshots__/msiTest.js.snap | 13 + test/src/windows/msiTest.ts | 6 + yarn.lock | 25 +- 23 files changed, 446 insertions(+), 178 deletions(-) create mode 100644 packages/electron-builder/src/options/AppXOptions.ts create mode 100644 packages/electron-builder/src/options/MsiOptions.ts rename packages/electron-builder/src/targets/{appx.ts => AppxTarget.ts} (92%) create mode 100644 packages/electron-builder/src/targets/MsiTarget.ts create mode 100644 packages/electron-builder/src/targets/targetUtil.ts create mode 100644 packages/electron-builder/templates/msi/template.wxs create mode 100644 test/out/windows/__snapshots__/msiTest.js.snap create mode 100644 test/src/windows/msiTest.ts diff --git a/.idea/dictionaries/develar.xml b/.idea/dictionaries/develar.xml index 5bfc91828c7..cda3f20b634 100644 --- a/.idea/dictionaries/develar.xml +++ b/.idea/dictionaries/develar.xml @@ -19,6 +19,7 @@ appimagekit appimagetool appleid + applicationfolder appveyor appx appxmanifest @@ -156,6 +157,7 @@ inetc inno insertmacro + installfolder installmode instdir instfiles @@ -298,6 +300,7 @@ srcfolder subcommand subsequence + targetdir targetsize templating testapp @@ -339,6 +342,7 @@ winedlloverrides winemenubuilder winstaller + wixobj workflows writev xamarin diff --git a/.idea/inspectionProfiles/Project_Default.xml b/.idea/inspectionProfiles/Project_Default.xml index 12b9fdabf14..3da18291cbc 100644 --- a/.idea/inspectionProfiles/Project_Default.xml +++ b/.idea/inspectionProfiles/Project_Default.xml @@ -2,6 +2,7 @@