Skip to content

Commit

Permalink
Merge pull request #30 from Yakiyo/platform-macos-fix
Browse files Browse the repository at this point in the history
fix url scheme issue regarding macos
  • Loading branch information
Yakiyo authored Feb 17, 2024
2 parents 054c6c3 + d528e56 commit 7619fb5
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 7 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# dsm

## 1.0.2

### Patch Changes

- aa9d43b: use macos for platform name in url schemes

## 1.0.1

### Patch Changes
Expand Down
6 changes: 3 additions & 3 deletions 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,7 +1,7 @@
[package]
name = 'dsm'
description = 'Simplified version manager for the Dart SDK'
version = '1.0.1'
version = '1.0.2'
authors = ['Yakiyo <yakiyo1206@gmail.com>']
edition = '2021'
license = 'MIT'
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "dsm",
"version": "1.0.1",
"version": "1.0.2",
"private": true,
"type": "module",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion src/platform.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ pub fn platform_name() -> &'static str {

#[cfg(target_os = "macos")]
pub fn platform_name() -> &'static str {
"darwin"
"macos"
}
2 changes: 1 addition & 1 deletion src/shell.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ pub enum Shell {
impl Default for Shell {
fn default() -> Self {
match platform_name() {
"linux" | "darwin" => Self::Bash,
"linux" | "macos" => Self::Bash,
"windows" => Self::Powershell,
platform => {
log::error!("Unknown platform {platform} received");
Expand Down

0 comments on commit 7619fb5

Please sign in to comment.