-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.txt
28 lines (17 loc) · 1.13 KB
/
setup.txt
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
26
27
28
npm install -g @devcontainers/cli
docker volume create --driver local -o o=bind -o type=none \
-o device="/home/developer/dev/zmk-config/" zmk-config
zmk-config
docker volume create --driver local -o o=bind -o type=none -o device="/home/developer/dev/zmk-config/" zmk-modules
zmk-modules
devcontainer up --workspace-folder "/home/developer/dev/zmk"
docker ps
docker exec -w /workspaces/zmk -it <container_id> /bin/bash
west init -l app/
west update
cd /workspaces
rm -r build && west build -s "zmk/app" -d "build/left" -b "nice_nano_v2" -- -DZMK_CONFIG=/workspaces/zmk-config/config -DSHIELD="corne_left nice_view_adapter nice_view" -DZMK_EXTRA_MODULES="/workspaces/zmk-config" && west build -s "zmk/app" -d "build/right" -b "nice_nano_v2" -- -DZMK_CONFIG=/workspaces/zmk-config/config -DSHIELD="corne_right nice_view_adapter nice_view" -DZMK_EXTRA_MODULES="/workspaces/zmk-config"
cp build/left/zephyr/zmk.uf2 /workspaces/zmk-config/zmk-left.uf2 && cp build/right/zephyr/zmk.uf2 /workspaces/zmk-config/zmk-right.uf2
sudo chown developer:developer zmk*.uf2
cp zmk-right.uf2 /media/developer/NICENANO/
cp zmk-left.uf2 /media/developer/NICENANO/