#!/bin/sh # config ZMK=$ZMK_DIR SHIELD_NAME=wristfucker set -xe # dont change this. THIS=$(realpath .) cd $ZMK . .venv/bin/activate cd app # dont forget the '-p' # nice_nano@2.0.0//zmk from https://discord.com/channels/719497620560543766/1483147376108503193/1483147376108503193 # i accidentally downloaded the main branch of zmk and I'm shooting myself in the foot. why is it different?? west build -d build/$SHIELD_NAME -S zmk-usb-logging -b "nice_nano@2.0.0//zmk" -- -DZMK_EXTRA_MODULES=$THIS -DSHIELD=$SHIELD_NAME -DZMK_CONFIG=$THIS/config mv build/$SHIELD_NAME/zephyr/zmk.uf2 $THIS/$SHIELD_NAME.uf2