Playdate SDK plugin for the asdf version manager.
curl
tar
The following covers how to install Playdate with asdf.
First, install the plugin with:
asdf plugin add playdate https://github.com/RobLoach/asdf-playdate.git
Once the plugin is installed, you can install a version of the Playdate SDK:
# Show all installable versions
asdf list-all playdate
# Install specific version
asdf install playdate latest
# Set a version globally (on your ~/.tool-versions file)
asdf global playdate latest
# Now playdate commands are available
pdc --version
PlaydateSimulator --help
Check asdf readme for more instructions on how to install & manage versions.
Now that Playdate is set up, you can add the PLAYDATE_SDK_PATH
environment variable by appending the following to your shell's initialization script, like ~/.bashrc
...
. ~/.asdf/plugins/playdate/setup.bash
. ~/.asdf/plugins/playdate/setup.zsh
. ~/.asdf/plugins/playdate/setup.fish
. ~/.asdf/plugins/playdate/setup.nu
. ~/.asdf/plugins/playdate/setup.xsh
Contributions of any kind welcome! See the contributing guide.