-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathleft.sh
executable file
·20 lines (17 loc) · 958 Bytes
/
left.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/bash
/Users/e_shchemelev/.pyenv/shims/python /Users/e_shchemelev/develop/zmk/syspass_gen.py > /Users/e_shchemelev/develop/zmk/app/include/syspass.h
cd /Users/e_shchemelev/develop/zmk
source /Users/e_shchemelev/.virtualenvs/zmk_keyring/bin/activate
cd /Users/e_shchemelev/develop/zmk/app
west build -p -b nice_nano_v2 -S studio-rpc-usb-uart -- -DSHIELD=slimredox_left -DZMK_CONFIG=/Users/e_shchemelev/develop/zmk-slimredox/config -DCONFIG_ZMK_STUDIO=y
# west build -p -b nice_nano_v2 -S zmk-usb-logging -- -DSHIELD=slimredox_left -DZMK_CONFIG=/Users/e_shchemelev/develop/zmk-slimredox/config
until [ -d /Volumes/NICENANO ]
do
echo "not found"
sleep 1
done
echo "Nice!Nano connected. Writing firmware..."
cp build/zephyr/zmk.uf2 ~/zmk/slimredox_left.uf2
cp build/zephyr/zmk.uf2 /Volumes/NICENANO/slimredox_left.uf2
rm /Users/e_shchemelev/develop/zmk/app/include/syspass.h
osascript -e 'display notification "build complete" with title "zmk"'