SymphonyElectron/installer/mac
Vishwas Shashidhar 9dbb273af3 SDA-1818: fix absolute path on intro.html
Signed-off-by: Vishwas Shashidhar <vishwas.shashidhar@symphony.com>
2020-04-27 19:45:56 +05:30
..
background.png fix: ELECTRON-1426 (Update custom title bar icon and fix Symphony icons) (#749) 2019-07-24 00:18:49 +05:30
intro.html Electron-391 (Redesigned Windows & macOS installer) (#346) 2018-04-30 17:02:51 +05:30
postinstall.sh SDA-1818: simplify mac installer (#973) 2020-04-27 16:34:56 +05:30
preinstall.sh SDA-1062: warn users before closing running app (#972) 2020-04-21 11:18:27 +05:30
README.md SDA-1818: simplify mac installer (#973) 2020-04-27 16:34:56 +05:30
symphony-mac-packager.pkgproj SDA-1818: fix absolute path on intro.html 2020-04-27 19:45:56 +05:30

Advanced Mac Installer

Overview

Using Packages, we can build a .pkg file for an existing app (.app). The tool allows us to customise the installation procedure to capture the admin entered values from /tmp/sym_settings.txt and /tmp/sym_permissions.txt

Pre-requisites

Build Process

Once we have Packages installed, we'll just need to run the following command which should take care of creating the .pkg build for us.

packagesbuild -v installer/mac/symphony-mac-packager.pkgproj

The above command creates the build 'Symphony.pkg' and places it into the directory installer/mac/build relative to the project root.

Note that the packages project file 'symphony-mac-packager.pkgproj' contains link to the pre install and the post install scripts both of which are relative to 'symphony-mac-packager.pkgproj'.

More command line documentation here

Implementation Details

  • Pre installation script checks to see if the version we are installing is higher than the already installed version. If the installed version is lower, it deletes the installed version.
  • Post installation script reads data from the temp files and replaces the values in the 'Symphony.config' file in the installed app

Known Issues

  • During installation, there is a section called "Destination Select" which is skipped based on the OS and it's settings. This is a known bug.