From e296ce8cff9917d69a1f234e92cecba3000eafb2 Mon Sep 17 00:00:00 2001 From: Benedikt Peetz Date: Mon, 30 Dec 2024 23:06:30 +0100 Subject: fix(scripts/deploy.sh): Correctly increment the version --- package.nix | 2 +- scripts/deployed.sh | 5 ++++- version.nix | 2 +- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/package.nix b/package.nix index fa66674..5c3d23f 100644 --- a/package.nix +++ b/package.nix @@ -29,7 +29,7 @@ requirements.txt ''; - version = import ./version.nix; + version = builtins.toString (import ./version.nix); in stdenv.mkDerivation { diff --git a/scripts/deployed.sh b/scripts/deployed.sh index c92693b..fad11e5 100755 --- a/scripts/deployed.sh +++ b/scripts/deployed.sh @@ -2,7 +2,10 @@ version="$(nix eval --file ./version.nix)" -echo "\"$((version + 1))\"" >./version.nix +cat >./version.nix < +$((version + 1)) +EOF cp ./result/binary_output/zsa_moonlander_* deployes/ diff --git a/version.nix b/version.nix index e60a901..a2a15e7 100644 --- a/version.nix +++ b/version.nix @@ -1,2 +1,2 @@ # NOTE: Change this _EVERY_ time you actually use a new keymap. <2024-12-29> -"26" +26 -- cgit 1.4.1