From 9e6e28f399cf47a84966981b986d2bee13230b7a Mon Sep 17 00:00:00 2001 From: cophilot Date: Thu, 29 Feb 2024 17:49:19 +0100 Subject: [PATCH] v0.7.0 --- .phil-project | 2 +- CHANGELOG.md | 6 ++++++ Cargo.lock | 2 +- Cargo.toml | 2 +- README.md | 6 ++---- src/env.rs | 4 ++++ src/version_control.rs | 3 +++ 7 files changed, 18 insertions(+), 7 deletions(-) diff --git a/.phil-project b/.phil-project index 7b4686e..0be507c 100644 --- a/.phil-project +++ b/.phil-project @@ -1,4 +1,4 @@ logo:assets/logo.png logo_small:assets/logo.png description_translate:de -version:0.6.0 +version:0.7.0 diff --git a/CHANGELOG.md b/CHANGELOG.md index e72fcab..25a2817 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,12 @@ --- +## [v0.7.0](https://github.com/cophilot/templify/tree/0.7.0) (2024-2-29) + +- macOS support added + +--- + ## [v0.6.0](https://github.com/cophilot/templify/tree/0.6.0) (2024-2-20) - Refactoring diff --git a/Cargo.lock b/Cargo.lock index bf91835..e562aa6 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -845,7 +845,7 @@ dependencies = [ [[package]] name = "templify" -version = "0.6.0" +version = "0.7.0" dependencies = [ "chrono", "reqwest", diff --git a/Cargo.toml b/Cargo.toml index 92aaa9f..4d5852a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "templify" -version = "0.6.0" +version = "0.7.0" edition = "2021" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html diff --git a/README.md b/README.md index 4bc6cbd..676dad1 100644 --- a/README.md +++ b/README.md @@ -234,11 +234,9 @@ tpy load https://github.com/cophilot/templify-vault/tree/main/React-ts ## [Release Notes](https://github.com/cophilot/templify/blob/master/CHANGELOG.md) -### [v0.6.0](https://github.com/cophilot/templify/tree/0.6.0) +### [v0.7.0](https://github.com/cophilot/templify/tree/0.7.0) -- Refactoring -- Added placeholder `$$month-name$$` -- Added case conversion support for the `name` placeholder +- macOS support added --- diff --git a/src/env.rs b/src/env.rs index 48cc122..d07f86a 100644 --- a/src/env.rs +++ b/src/env.rs @@ -5,3 +5,7 @@ pub static mut BASE_COMMAND_NAME: String = String::new(); pub fn is_windows() -> bool { return env::consts::OS == "windows"; } + +pub fn is_mac() -> bool { + return env::consts::OS == "macos"; +} diff --git a/src/version_control.rs b/src/version_control.rs index 28d50e0..af4fa88 100644 --- a/src/version_control.rs +++ b/src/version_control.rs @@ -5,6 +5,9 @@ pub fn update(v: String) -> Result<(), Box> { if env::is_windows() { binary_ending = ".exe"; } + if env::is_mac() { + binary_ending = "_macos"; + } let mut version = v;