From 0ad82e3e902c97dcd2532bd79bc27a25ca28fe63 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javier=20Hern=C3=A1ndez?= Date: Tue, 19 Feb 2019 16:51:19 +0100 Subject: [PATCH 1/3] GPII-3714: Added WiX product definition --- MorphicCredentials.wxs | 81 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 81 insertions(+) create mode 100644 MorphicCredentials.wxs diff --git a/MorphicCredentials.wxs b/MorphicCredentials.wxs new file mode 100644 index 0000000..df4f848 --- /dev/null +++ b/MorphicCredentials.wxs @@ -0,0 +1,81 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 1 + + + 1 + 1 + + 1 + 1 + 1 + + + + + + + + + + + + + + + + + + + + From c8105795f681d3c4c1b034f13850491486825fc5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javier=20Hern=C3=A1ndez?= Date: Tue, 19 Feb 2019 16:52:20 +0100 Subject: [PATCH 2/3] GPII-3714: Included powershell build script --- build.ps1 | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 build.ps1 diff --git a/build.ps1 b/build.ps1 new file mode 100644 index 0000000..151c379 --- /dev/null +++ b/build.ps1 @@ -0,0 +1,24 @@ +<# + This script creates the installer with the client credentials for Morphic. +#> + +if (!(Test-Path -Path secret.txt)) { + Write-Output "" + Write-Output "Please provide the secret.txt file." + Write-Output "" + exit 1 +} + +function Clean { + rm *.wixobj, output\*.wixpdb +} + +Clean + +Remove-Item -Recurse output +mkdir output + +candle -out MorphicCredentials.wixobj MorphicCredentials.wxs +light -ext WiXUtilExtension -ext WixUIExtension MorphicCredentials.wixobj -sacl -o output/MorphicCredentials.msi + +Clean From 93f125afee5ff2e2a9d39db0c8a41ee7d404981d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javier=20Hern=C3=A1ndez?= Date: Tue, 19 Feb 2019 16:53:09 +0100 Subject: [PATCH 3/3] GPII-3714: Updated README.md and added a .gitignore file --- .gitignore | 2 ++ README.md | 12 +++++++++++- 2 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..da797b4 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +output +secret.txt diff --git a/README.md b/README.md index 0919fdd..64e7aa5 100644 --- a/README.md +++ b/README.md @@ -1 +1,11 @@ -# morphic-credentials-installer +# Morphic Credentials + +Morphic Credentials is a tiny Windows Installer (MSI) that installs the Morphic client credentials into a secure area of the filesystem. + +## Usage + +The secret needs to be generated manually and copied into a file called secret.txt. + +Run build.ps1 + +Remember, DO NOT commit the secret.txt file. :)