How to add games to Launcher in simulation

On macOS I use this little script to set up a shortcut in PlaydateSDK/Disk/Games to my game build file located elsewhere:

#!/usr/bin/env bash
FOLDER=$1
GAME=$2
: ${1?"Usage: $0 folder game.pdx"}
: ${2?"Usage: $0 folder game.pdx"}

ln -s "/Volumes/External/Users/matt/Projects/Playdate/$FOLDER/$GAME" "/Applications/PlaydateSDK/Disk/Games/$GAME"
  • -s creates a symbolic link
  • It's important that both paths are absolute (and not relative like ~/Projects/Playdate/...)
  • I keep the script at /Applications/PlaydateSDK/Disk/Games/shortcut.sh
  • folder is your project folder name
  • game.pdx is your .pdx name

Usage: ./shortcut.sh folder game.pdx

If this doesn't work on Linux, there may be a difference with the Simulator on that platform?

4 Likes