Commit 4319e7705a60
Changed files (3)
keyboards
eyelash_corne
lib
keyboards/lib/functions.sh → keyboards/eyelash_corne/lib/functions.sh
File renamed without changes
keyboards/eyelash_corne.sh → keyboards/eyelash_corne/go.sh
@@ -6,7 +6,7 @@ cPWD="$(dirname "$(readlink -f "$0")")"
source "${cPWD}/lib/functions.sh"
function build() {
- docker build --target output_collector --output type=local,dest="firmwares" -f eyelash_corne/Dockerfile eyelash_corne
+ tar -cf - Dockerfile build.yaml config zephyr | docker build --target output_collector --output type=local,dest="firmwares" -f Dockerfile -
}
function flash() {
@@ -30,11 +30,32 @@ function flash() {
fi
}
-build
+help() {
+ echo "go.sh [build/flash]"
+}
-flash left usb-Adafruit_nRF_UF2_6863BEB9EE8668EC-0:0
-echo "$(echo_green ) Left side is completed.."
-sleep 2
+[[ -z ${1-""} ]] && {
+ set +x
+ echo "need at least one arg"
+ help
+ exit 1
+}
-flash right usb-Adafruit_nRF_UF2_0E9CC2AD6581EE32-0:0
-echo "$(echo_green )" "Right side is completed.. enjoy 🥳"
+case "$1" in
+build) build ;;
+flash)
+ build
+
+ flash left usb-Adafruit_nRF_UF2_6863BEB9EE8668EC-0:0
+ echo "$(echo_green ) Left side is completed.."
+ sleep 2
+
+ flash right usb-Adafruit_nRF_UF2_0E9CC2AD6581EE32-0:0
+ echo "$(echo_green )" "Right side is completed.. enjoy 🥳"
+ ;;
+*)
+ echo "Wrong argument $1"
+ help
+ exit 1
+ ;;
+esac
CLAUDE.md
@@ -163,8 +163,8 @@ go test ./...
# Build Moonlander QMK firmware in folder keyboards/moonlander of the git repository
./go.sh build
-# Build eyelash_corne ZMK firmware in folder keyboards of the git repository
-./eyelash_corne.sh build
+# Build eyelash_corne ZMK firmware in folder keyboards/eyelash_corne of the git repository
+./go.sh build
```
## Special Notes