From ad644df07e9a91f4b83a7655b29a4da3b1314617 Mon Sep 17 00:00:00 2001 From: Gustas Klevinskas Date: Sun, 29 Sep 2024 14:06:34 +0300 Subject: [PATCH] release: 0.4.0 --- flake.nix | 8 +++++++- pubspec.yaml | 2 +- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/flake.nix b/flake.nix index 24a7faf..00710a5 100644 --- a/flake.nix +++ b/flake.nix @@ -36,7 +36,13 @@ { packages.${system}.default = flutter.buildFlutterApplication { pname = "finances"; - version = "0.3.1"; + version = + let + versionMatch = builtins.match ".*version: ([0-9]+\.[0-9]+\.[0-9]+)\n" (builtins.readFile ./pubspec.yaml); + in + if versionMatch != null && versionMatch != [ ] + then builtins.head versionMatch + else throw "Failed to extract version from pubspec.yaml"; src = ./.; autoPubspecLock = ./pubspec.lock; extraWrapProgramArgs = "--suffix LD_LIBRARY_PATH : ${ld-library-path}"; diff --git a/pubspec.yaml b/pubspec.yaml index 44274a4..2a6d251 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,7 +1,7 @@ name: finances description: A new Flutter project. publish_to: 'none' -version: 0.3.1 +version: 0.4.0 environment: sdk: '>=3.1.4 <4.0.0'