Is there a CLI for building games for the PyGamer when using Static Typescript with the VSCode extension?

Hey there!

Is there a CLI for building games for the PyGamer when using Static Typescript with the VSCode extension? I tried searching in the forums, in the GitHub repos for Arcade, in the Docs, on Google, I was only able to find the pxt CLI but it doesn’t appear to build for the PyGamer…

I’d like to add the build step to my Makefile so that it builds the game for the PyGamer and then copies it to the Pygamer’s volume.

I found out by myself so I’ll reply in case someone from the future is looking for it.

Install MKC, the command line tool for MakeCode editors.

``bash
npm install -g makecode


Find out the name of your target hardware's processor:

```bash
mkc --hw help
Available hw:
n3, N3 - Board based on Nordic NRF52833
n4, N4 - Board based on Nordic NRF52840
rpi, Pi0 - Raspberry Pi Zero (custom piCore Linux image)
samd51, D5 - Board based on Microchip ATSAMD51
stm32f401, F4 - Board based on STM32F4xx
rp2040, R2 - Board based on Raspberry Pi RP2040
vm, VM - VM

The PyGamer uses the ATSAMD51 processor so our build command should be:

mkc build --hw D5
1 Like

Have you tried this? A VsCode extension, much more convience and powerful.

1 Like