Skip to content

Commit

Permalink
v0.7.0
Browse files Browse the repository at this point in the history
  • Loading branch information
cophilot committed Feb 29, 2024
1 parent 0329d96 commit 9e6e28f
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .phil-project
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
logo:assets/logo.png
logo_small:assets/logo.png
description_translate:de
version:0.6.0
version:0.7.0
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -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
Expand Down
6 changes: 2 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

---

Expand Down
4 changes: 4 additions & 0 deletions src/env.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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";
}
3 changes: 3 additions & 0 deletions src/version_control.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ pub fn update(v: String) -> Result<(), Box<dyn std::error::Error>> {
if env::is_windows() {
binary_ending = ".exe";
}
if env::is_mac() {
binary_ending = "_macos";
}

let mut version = v;

Expand Down

0 comments on commit 9e6e28f

Please sign in to comment.