forked from typeractivexyz/corne-wireless-view-zmk-config
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild_cornes.sh
executable file
·25 lines (20 loc) · 905 Bytes
/
build_cornes.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
mkdir -p artefacts
archive=artefacts/old/`date +"%s"`
mkdir -p $archive
rm -rf build
west build --pristine -s zmk/app -b "nice_nano_v2" -- -DZMK_CONFIG="config" -DSHIELD="corne_left nice_view_adapter nice_view"
if [[ -f build/zephyr/zmk.uf2 ]]; then
mv artefacts/corne_left.uf2 $archive
mv build/zephyr/zmk.uf2 artefacts/corne_left.uf2
fi
rm -rf build
west build --pristine -s zmk/app -b "nice_nano_v2" -- -DZMK_CONFIG="config" -DSHIELD="corne_right nice_view_adapter nice_view"
if [[ -f build/zephyr/zmk.uf2 ]]; then
mv artefacts/corne_right.uf2 $archive
mv build/zephyr/zmk.uf2 artefacts/corne_right.uf2
fi
# Uncomment this to make the reset firmware when the halves don't want to pair
# west build --pristine -s zmk/app -b "nice_nano_v2" -- -DZMK_CONFIG="config" -DSHIELD="settings_reset"
# mv build/zephyr/zmk.uf2 artefacts/settings_reset.uf2
md5sum artefacts/*.uf2
md5sum $archive/*.uf2