diff --git a/Cargo.lock b/Cargo.lock index d36387b..ae5909e 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -3495,7 +3495,7 @@ dependencies = [ [[package]] name = "routecode-cli" -version = "0.1.6" +version = "0.1.7" dependencies = [ "anyhow", "async-trait", @@ -3517,7 +3517,7 @@ dependencies = [ [[package]] name = "routecode-sdk" -version = "0.1.6" +version = "0.1.7" dependencies = [ "anyhow", "async-stream", diff --git a/apps/cli/Cargo.toml b/apps/cli/Cargo.toml index b364767..cf7106c 100644 --- a/apps/cli/Cargo.toml +++ b/apps/cli/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "routecode-cli" -version = "0.1.7" +version = "0.1.8" edition = "2021" authors = ["SpeerX "] description = "CLI application for RouteCode" diff --git a/install.ps1 b/install.ps1 index f470507..8b21595 100644 --- a/install.ps1 +++ b/install.ps1 @@ -2,7 +2,7 @@ $repo = "anasx07/routecode" $latestRelease = Invoke-RestMethod -Uri "https://api.github.com/repos/$repo/releases/latest" $tag = $latestRelease.tag_name -$assetName = "routecode-windows-x86_64.exe" +$assetName = "RouteCode-cli-windows-x86_64.exe" $url = "https://github.com/$repo/releases/download/$tag/$assetName" $installDir = "$HOME\.routecode\bin" diff --git a/install.sh b/install.sh index 9476318..9b33f49 100644 --- a/install.sh +++ b/install.sh @@ -7,13 +7,13 @@ ARCH=$(uname -m) case "$OS" in linux) - ASSET="routecode-linux-x86_64" + ASSET="RouteCode-cli-linux-x86_64" ;; darwin) if [ "$ARCH" = "arm64" ]; then - ASSET="routecode-macos-arm64" + ASSET="RouteCode-cli-macos-arm64" else - ASSET="routecode-macos-x86_64" + ASSET="RouteCode-cli-macos-x86_64" fi ;; *) diff --git a/libs/sdk/Cargo.toml b/libs/sdk/Cargo.toml index b5ce402..ef8ab15 100644 --- a/libs/sdk/Cargo.toml +++ b/libs/sdk/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "routecode-sdk" -version = "0.1.7" +version = "0.1.8" edition = "2021" authors = ["SpeerX "] description = "Core logic for RouteCode" diff --git a/libs/sdk/src/update/types.rs b/libs/sdk/src/update/types.rs index 4cc9878..a26da0b 100644 --- a/libs/sdk/src/update/types.rs +++ b/libs/sdk/src/update/types.rs @@ -29,15 +29,15 @@ pub struct GitHubAsset { pub fn get_platform_asset_name() -> Option<&'static str> { if cfg!(target_os = "windows") { - Some("routecode-windows-x86_64.exe") + Some("RouteCode-cli-windows-x86_64.exe") } else if cfg!(target_os = "macos") { if cfg!(target_arch = "aarch64") { - Some("routecode-macos-arm64") + Some("RouteCode-cli-macos-arm64") } else { - Some("routecode-macos-x86_64") + Some("RouteCode-cli-macos-x86_64") } } else if cfg!(target_os = "linux") { - Some("routecode-linux-x86_64") + Some("RouteCode-cli-linux-x86_64") } else { None } @@ -45,15 +45,15 @@ pub fn get_platform_asset_name() -> Option<&'static str> { pub fn get_platform_checksum_asset_name() -> Option<&'static str> { if cfg!(target_os = "windows") { - Some("routecode-windows-x86_64.exe.sha256") + Some("RouteCode-cli-windows-x86_64.exe.sha256") } else if cfg!(target_os = "macos") { if cfg!(target_arch = "aarch64") { - Some("routecode-macos-arm64.sha256") + Some("RouteCode-cli-macos-arm64.sha256") } else { - Some("routecode-macos-x86_64.sha256") + Some("RouteCode-cli-macos-x86_64.sha256") } } else if cfg!(target_os = "linux") { - Some("routecode-linux-x86_64.sha256") + Some("RouteCode-cli-linux-x86_64.sha256") } else { None }