summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorBenedikt Peetz <benedikt.peetz@b-peetz.de>2024-12-30 18:53:10 +0100
committerBenedikt Peetz <benedikt.peetz@b-peetz.de>2024-12-30 18:53:10 +0100
commitd99e4119792b832928a0306d0f342710b53a6ef3 (patch)
tree2429e51421b9dd54d8dde8473ddad1167d20f985
parentfix(soispha/hid): Ignore all received rawhid input (diff)
downloadqmk_layout-d99e4119792b832928a0306d0f342710b53a6ef3.zip
feat(scripts/deployed): Track successful deployments
-rwxr-xr-xdeployes/zsa_moonlander_0.27.1-dirty-26bin0 -> 50968 bytes
-rw-r--r--package.nix5
-rwxr-xr-xscripts/deployed.sh9
-rw-r--r--version.nix2
4 files changed, 13 insertions, 3 deletions
diff --git a/deployes/zsa_moonlander_0.27.1-dirty-26 b/deployes/zsa_moonlander_0.27.1-dirty-26
new file mode 100755
index 0000000..4766a10
--- /dev/null
+++ b/deployes/zsa_moonlander_0.27.1-dirty-26
Binary files differdiff --git a/package.nix b/package.nix
index 7db364e..5a239c8 100644
--- a/package.nix
+++ b/package.nix
@@ -29,8 +29,7 @@
     requirements.txt
   '';
 
-  # NOTE: Change this _EVERY_ time you actually use a new keymap. <2024-12-29>
-  version = "26";
+  version = import ./version.nix;
 in
   stdenv.mkDerivation
   {
@@ -138,7 +137,7 @@ in
         fd . $out/build --type empty --type directory --hidden --exec rm --dir
       done
 
-      ln --symbolic --relative "$out/build/zsa_moonlander_${layout_id}.bin" "$out/binary_output/"
+      ln --symbolic --relative "$out/build/zsa_moonlander_${layout_id}.bin" "$out/binary_output/zsa_moonlander_$QMK_VERSION"
 
       runHook postInstall
     '';
diff --git a/scripts/deployed.sh b/scripts/deployed.sh
new file mode 100755
index 0000000..c92693b
--- /dev/null
+++ b/scripts/deployed.sh
@@ -0,0 +1,9 @@
+#!/usr/bin/env sh
+
+version="$(nix eval --file ./version.nix)"
+
+echo "\"$((version + 1))\"" >./version.nix
+
+cp ./result/binary_output/zsa_moonlander_* deployes/
+
+# vim: ft=sh
diff --git a/version.nix b/version.nix
new file mode 100644
index 0000000..e60a901
--- /dev/null
+++ b/version.nix
@@ -0,0 +1,2 @@
+# NOTE: Change this _EVERY_ time you actually use a new keymap. <2024-12-29>
+"26"