17 lines
615 B
Fish
Executable file
17 lines
615 B
Fish
Executable file
#!/usr/bin/env fish
|
|
|
|
docker run -it --rm \
|
|
-v (pwd)/.cache:/zorne \
|
|
-v (pwd)/config:/zorne/config:ro \
|
|
-v (pwd)/build:/build \
|
|
zmkfirmware/zmk-build-arm:2.5 sh -c 'cd /zorne
|
|
west init -l config
|
|
west update
|
|
west zephyr-export
|
|
echo "Building left"
|
|
west build --pristine -s zmk/app -b nice_nano -- -DSHIELD=corne_left -DZMK_CONFIG="/zorne/config"
|
|
cp /zorne/build/zephyr/zmk.uf2 /build/corne_left_nice_nano.uf2
|
|
echo "Building right"
|
|
west build --pristine -s zmk/app -b nice_nano -- -DSHIELD=corne_right -DZMK_CONFIG="/zorne/config"
|
|
cp /zorne/build/zephyr/zmk.uf2 /build/corne_right_nice_nano.uf2'
|