KosalaHerath / macos-installer-builder

Generate macOS installers for your applications and products from one command
Apache License 2.0
323 stars 94 forks source link

Terms of Service step #8

Closed mikeumus closed 4 years ago

mikeumus commented 4 years ago

How might you add a Terms of Service page to the installer?

Thank you.

KosalaHerath commented 4 years ago

Hi Micheal,

You can add a License or Terms of Service to your product installer, prepare a license file in one of the supported formats (including RTF, HTML, and plain text) and add it to

<PRODUCT_HOME>/macOS-x64/darwin/Resources/

directory. Then add its reference to the distribution file using a element to the distribution file root element :

<?xml version="1.0" encoding="utf-8" standalone="no"?>
<installer-script minSpecVersion="1.000000">
    <title>__PRODUCT__</title>
    <background mime-type="image/png" file="banner.png" scaling="proportional"/>
     ...
    <license file="LICENSE.html"/>
     ...
</installer-gui-script>

Then you can find it in the installation windows before and the user needs it to accept before proceeding as following:

Screen Shot 2020-09-22 at 5 36 15 pm

Hope this will help you. 😇

KosalaHerath commented 4 years ago

Since improvement is added https://github.com/KosalaHerath/macos-installer-builder/commit/3eed0d20ef99fbc0b9767449e1d9694a9f15ea7f closing the issue.

mikeumus commented 4 years ago

Yes, this helps. Thank you @KosalaHerath