diff --git a/Makefile b/Makefile index d264446c..02ebacca 100644 --- a/Makefile +++ b/Makefile @@ -206,8 +206,15 @@ bump-version: new_version="$$major.$$minor.$$new_patch"; \ echo " Nouvelle version: $$new_version"; \ sed -i.bak "s/^version = \"$$current\"/version = \"$$new_version\"/" PMOMusic/Cargo.toml && \ - rm PMOMusic/Cargo.toml.bak - @echo "$(GREEN)✓ Version mise à jour dans PMOMusic/Cargo.toml$(NC)" + rm PMOMusic/Cargo.toml.bak && \ + echo "$$new_version" > version.txt + @echo "$(GREEN)✓ Version mise à jour dans PMOMusic/Cargo.toml et version.txt$(NC)" + +## sync-version: Synchronise version.txt depuis PMOMusic/Cargo.toml +sync-version: + @echo "$(YELLOW)→ Synchronisation de version.txt...$(NC)" + @grep '^version = ' PMOMusic/Cargo.toml | head -n 1 | sed 's/version = "\(.*\)"/\1/' > version.txt + @echo "$(GREEN)✓ version.txt synchronisé: $$(cat version.txt)$(NC)" ## bench: Exécute les benchmarks bench: diff --git a/PMOMusic/Cargo.toml b/PMOMusic/Cargo.toml index 3853aa5c..cf1a30e5 100644 --- a/PMOMusic/Cargo.toml +++ b/PMOMusic/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "PMOMusic" -version = "0.3.1" +version = "0.3.2" edition = "2024" [dependencies] diff --git a/version.txt b/version.txt new file mode 100644 index 00000000..d15723fb --- /dev/null +++ b/version.txt @@ -0,0 +1 @@ +0.3.2