Link Search Menu Expand Document
Table of contents
  1. Flow - drbetaforce
    1. Description
    2. Variables
      1. Used
      2. Created
    3. Termination
    4. Flow
    5. Notes

Flow - drbetaforce

Description

Trigger updating the application to the latest beta version via a multi-step process.

The first step is to determine if the user has administrator rights (determined by checking the groups that the user is a member of). The process will then continue as a single script block for administrative users, or as as two blocks to allow the provision of administrative credentials if the user does not have administrative access.

In each case, the script blocks will close Drafts (if it is open), retrieve the latest version of the ZIP file containing the beta, unzip the app, copy it into the applications folder, tidy-up the downloads folder, then relaunch Drafts and trigger the flow completion.

Variables

Used

No variables are passed into this flow.

Created

The following variables are set-up by the flow.

Variable Description
NotificationTitle The title to be shown in any completion notification.
NotificationMessage The message to be shown in any completion notification.

Termination

Flow

drbetaforce

Notes

  • The download, unzip and copy to install script includes mandatory visual notifications. These are included because the process can be slow on some devices, and there is no progress bar to display.
  • The Drafts beta is always published to the same ZIP file on AWS.
  • Translocation of the app file should not be necessary as we are using a Terminal-level copy command.