#!/bin/bash # JaydLive for PowerPoint - one-click setup for Mac. # Double-click this file in Finder. It downloads the JaydLive # add-in file into the folder PowerPoint reads on this Mac. JL_URL="https://jaydlive.com/manifest.xml" WEF_DIR="$HOME/Library/Containers/com.microsoft.Powerpoint/Data/Documents/wef" TARGET="$WEF_DIR/manifest.xml" fail() { echo "" echo "STOPPED: $1" echo "You can use the manual steps at https://jaydlive.com/powerpoint-setup" echo "" printf "Press Enter to close this window. " read -r _ exit 1 } echo "" echo "==========================================================" echo " JaydLive for PowerPoint - Mac Setup" echo "==========================================================" echo "" echo "This puts the JaydLive pane inside PowerPoint on this Mac." echo "If PowerPoint is open, quit it now (Cmd+Q)." echo "" printf "Press Enter to continue, or close this window to stop. " read -r _ echo "" echo "Step 1 of 2: Creating the PowerPoint add-ins folder..." mkdir -p "$WEF_DIR" || fail "the add-ins folder could not be created." echo "Step 2 of 2: Downloading the JaydLive add-in file..." curl -fsSL -o "$TARGET" "$JL_URL" || fail "the add-in file could not be downloaded - check this Mac is online, then run this file again." if [ ! -s "$TARGET" ]; then fail "the downloaded file looks empty - run this file again." fi echo "" echo "==========================================================" echo " DONE - JaydLive is set up on this Mac." echo "==========================================================" echo "" echo "Now finish in PowerPoint:" echo " 1. Quit PowerPoint completely (Cmd+Q), then open it again." echo " 2. Click Insert, then Add-ins, then My Add-ins." echo " 3. Click JaydLive for PowerPoint, then Add." echo "" echo "The JaydLive pane opens on the right. Type your event" echo "code in the pane (for the demo, type DEMO) and present." echo "" printf "Press Enter to close this window. " read -r _ exit 0